@hmxlabs/dax-client 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var h=class extends Error{constructor(t,s){super(t);this.httpResponse=s}};var n=class{baseUrl="https://localhost:44488";securityData=null;securityWorker;abortControllers=new Map;customFetch=(...e)=>fetch(...e);baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};constructor(e={}){Object.assign(this,e)}setSecurityData=e=>{this.securityData=e};encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent(typeof t=="number"?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(r=>this.encodeQueryParam(t,r)).join("&")}toQueryString(e){let t=e||{};return Object.keys(t).filter(r=>typeof t[r]<"u").map(r=>Array.isArray(t[r])?this.addArrayQueryParam(t,r):this.addQueryParam(t,r)).join("&")}addQueryParams(e){let t=this.toQueryString(e);return t?`?${t}`:""}contentFormatters={"application/json":e=>e!==null&&(typeof e=="object"||typeof e=="string")?JSON.stringify(e):e,"text/plain":e=>e!==null&&typeof e!="string"?JSON.stringify(e):e,"multipart/form-data":e=>Object.keys(e||{}).reduce((t,s)=>{let r=e[s];return t.append(s,r instanceof Blob?r:typeof r=="object"&&r!==null?JSON.stringify(r):`${r}`),t},new FormData),"application/x-www-form-urlencoded":e=>this.toQueryString(e)};mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}createAbortSignal=e=>{if(this.abortControllers.has(e)){let s=this.abortControllers.get(e);return s?s.signal:void 0}let t=new AbortController;return this.abortControllers.set(e,t),t.signal};abortRequest=e=>{let t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))};abortPreviousRequestAndCreateSignal(e){return this.abortRequest(e),this.createAbortSignal(e)}request=async({body:e,secure:t,path:s,type:r,query:y,format:R,baseUrl:f,cancelToken:l,...v})=>{let b=(typeof t=="boolean"?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},o=this.mergeRequestParams(v,b),q=y&&this.toQueryString(y),C=this.contentFormatters[r||"application/json"],T=R||o.format,F=o.signal??this.abortPreviousRequestAndCreateSignal(l??s);return this.customFetch(`${f||this.baseUrl||""}${s}${q?`?${q}`:""}`,{...o,headers:{...o.headers||{},...r&&r!=="multipart/form-data"?{"Content-Type":r}:{}},signal:F,body:typeof e>"u"||e===null?null:C(e)}).then(async p=>{let i=p;i.data=null,i.error=null;let g=T?await p[T]().then(u=>(i.ok?i.data=u:i.error=u,i)).catch(u=>(i.error=u,i)):i;if(l&&this.abortControllers.delete(l),!p.ok)throw new h("HttpClient response error",g);return g.data})}};var m=class extends n{attachmentGetDirectUploadUrl=(e={})=>this.request({path:"/api/v1/attachment/direct-upload",method:"GET",secure:!0,format:"json",...e});attachmentGetDirectUploadImageStatus=(e,t={})=>this.request({path:`/api/v1/attachment/direct-upload/${e}`,method:"GET",secure:!0,format:"json",...t});attachmentGetBatchDirectUploadUrl=(e={})=>this.request({path:"/api/v1/attachment/batch-direct-upload",method:"GET",secure:!0,format:"json",...e});attachmentFindAll=(e,t,s={})=>this.request({path:`/api/v1/item/${e}/attachment`,method:"GET",query:t,format:"json",...s});attachmentCreate=(e,t,s={})=>this.request({path:`/api/v1/item/${e}/attachment`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});attachmentUpdate=(e,t,s,r={})=>this.request({path:`/api/v1/item/${e}/attachment/${t}`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...r});attachmentDelete=(e,t,s={})=>this.request({path:`/api/v1/item/${e}/attachment/${t}`,method:"DELETE",secure:!0,...s});bidsFindAllForAdmin=(e,t,s={})=>this.request({path:`/api/v1/admin/auction/${e}/bid`,method:"GET",query:t,secure:!0,format:"json",...s});bidsFindAll=(e,t={})=>this.request({path:`/api/v1/auction/${e}/bid`,method:"GET",format:"json",...t});bidsCreate=(e,t,s={})=>this.request({path:`/api/v1/auction/${e}/bid`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});bidsDelete=(e,t,s,r={})=>this.request({path:`/api/v1/auction/${e}/bid/${t}`,method:"DELETE",body:s,secure:!0,type:"application/json",...r});commentFindAll=(e,t,s={})=>this.request({path:`/api/v1/listings/${e}/comments`,method:"GET",query:t,format:"json",...s});commentCreate=(e,t,s={})=>this.request({path:`/api/v1/listings/${e}/comments`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});commentDelete=(e,t,s={})=>this.request({path:`/api/v1/listings/${e}/comments/${t}`,method:"DELETE",secure:!0,...s});currencyGetByCode=(e,t,s={})=>this.request({path:`/api/v1/currency/${e}`,method:"GET",query:t,format:"json",...s});currencyFindAll=(e,t={})=>this.request({path:"/api/v1/currency",method:"GET",query:e,format:"json",...t});feeGetById=(e,t,s={})=>this.request({path:`/api/v1/fee/${e}`,method:"GET",query:t,secure:!0,format:"json",...s});feeUpdate=(e,t,s={})=>this.request({path:`/api/v1/fee/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});feeDelete=(e,t={})=>this.request({path:`/api/v1/fee/${e}`,method:"DELETE",secure:!0,...t});feeFindAll=(e,t={})=>this.request({path:"/api/v1/fee",method:"GET",query:e,secure:!0,format:"json",...t});feeCreate=(e,t={})=>this.request({path:"/api/v1/fee",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});fixedPriceOfferFindOffersForAdmin=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/offer`,method:"GET",secure:!0,format:"json",...t});fixedPriceOfferFindOffers=(e,t={})=>this.request({path:`/api/v1/listing/${e}/offer`,method:"GET",secure:!0,format:"json",...t});fixedPriceOfferCreateOffer=(e,t,s={})=>this.request({path:`/api/v1/listing/${e}/offer`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});fixedPriceOfferBuyNow=(e,t,s={})=>this.request({path:`/api/v1/listing/${e}/buy-now`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});fixedPriceOfferAcceptOffer=(e,t,s,r={})=>this.request({path:`/api/v1/listing/${e}/offer/${t}/accept`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...r});fixedPriceOfferRejectOffer=(e,t,s,r={})=>this.request({path:`/api/v1/listing/${e}/offer/${t}/reject`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...r});fixedPriceOfferCreateCounterOffer=(e,t,s,r={})=>this.request({path:`/api/v1/listing/${e}/offer/${t}/counter-offer`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...r});fixedPriceOfferOfferRead=(e,t,s={})=>this.request({path:`/api/v1/listing/${e}/offer/${t}/mark-as-read`,method:"POST",secure:!0,format:"json",...s});heartbeatGet=(e={})=>this.request({path:"/api/v1/heartbeat",method:"GET",format:"json",...e});inquiryFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/inquiries",method:"GET",query:e,secure:!0,format:"json",...t});inquiryGetByIdForAdmin=(e,t={})=>this.request({path:`/api/v1/admin/inquiries/${e}`,method:"GET",secure:!0,format:"json",...t});inquiryDeleteForAdmin=(e,t={})=>this.request({path:`/api/v1/admin/inquiries/${e}`,method:"DELETE",secure:!0,...t});inquiryCreateSubmitEmail=(e,t={})=>this.request({path:"/api/v1/inquiries/submit-email",method:"POST",body:e,type:"application/json",format:"json",...t});inquiryCreateContactUs=(e,t={})=>this.request({path:"/api/v1/inquiries/contact-us",method:"POST",body:e,type:"application/json",format:"json",...t});inquiryCreateWatchSell=(e,t={})=>this.request({path:"/api/v1/inquiries/watch-sell",method:"POST",body:e,type:"application/json",format:"json",...t});inquiryCreateWatchInquiry=(e,t={})=>this.request({path:"/api/v1/inquiries/watch-inquiry",method:"POST",body:e,type:"application/json",format:"json",...t});itemFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/item",method:"GET",query:e,secure:!0,format:"json",...t});itemGetForAdminById=(e,t,s={})=>this.request({path:`/api/v1/admin/item/${e}`,method:"GET",query:t,secure:!0,format:"json",...s});itemUpdateForAdmin=(e,t,s={})=>this.request({path:`/api/v1/admin/item/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});itemAccept=(e,t={})=>this.request({path:`/api/v1/admin/item/${e}/accept`,method:"PUT",secure:!0,...t});itemReject=(e,t={})=>this.request({path:`/api/v1/admin/item/${e}/reject`,method:"PUT",secure:!0,...t});itemDelete=(e,t={})=>this.request({path:`/api/v1/seller/item/${e}`,method:"DELETE",secure:!0,...t});itemGetForSellerById=(e,t={})=>this.request({path:`/api/v1/seller/item/${e}`,method:"GET",secure:!0,format:"json",...t});itemUpdateForSeller=(e,t,s={})=>this.request({path:`/api/v1/seller/item/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});itemCreateProposal=(e,t={})=>this.request({path:`/api/v1/seller/item/${e}/create-proposal`,method:"PUT",secure:!0,...t});itemFindAllForSeller=(e={})=>this.request({path:"/api/v1/seller/item",method:"GET",secure:!0,format:"json",...e});itemCreateDraftOrProposal=(e,t={})=>this.request({path:"/api/v1/seller/item",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});itemStatusCountFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/item-status-count",method:"GET",query:e,secure:!0,format:"json",...t});listingGetForAdminById=(e,t,s={})=>this.request({path:`/api/v1/admin/listing/${e}`,method:"GET",query:t,secure:!0,format:"json",...s});listingUpdate=(e,t,s={})=>this.request({path:`/api/v1/admin/listing/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});listingDelete=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}`,method:"DELETE",secure:!0,...t});listingWithdraw=(e,t,s={})=>this.request({path:`/api/v1/admin/listing/${e}/withdraw`,method:"PUT",body:t,secure:!0,type:"application/json",...s});listingFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/listing",method:"GET",query:e,secure:!0,format:"json",...t});listingUpdateProperties=(e,t={})=>this.request({path:"/api/v1/admin/listing",method:"PUT",body:e,secure:!0,type:"application/json",...t});listingCreate=(e,t={})=>this.request({path:"/api/v1/admin/listing",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});listingGetForSellerById=(e,t={})=>this.request({path:`/api/v1/seller/listing/${e}`,method:"GET",secure:!0,format:"json",...t});listingFindAllForSeller=(e,t={})=>this.request({path:"/api/v1/seller/listing",method:"GET",query:e,secure:!0,format:"json",...t});listingGetForBuyerById=(e,t={})=>this.request({path:`/api/v1/buyer/listing/${e}`,method:"GET",secure:!0,format:"json",...t});listingFindAllForBuyer=(e,t={})=>this.request({path:"/api/v1/buyer/listing",method:"GET",query:e,secure:!0,format:"json",...t});listingGetById=(e,t={})=>this.request({path:`/api/v1/listing/${e}`,method:"GET",format:"json",...t});listingWatchOrNot=(e,t,s={})=>this.request({path:`/api/v1/listing/${e}/watch-unwatch`,method:"PUT",body:t,secure:!0,type:"application/json",...s});listingFindAll=(e,t={})=>this.request({path:"/api/v1/listing",method:"GET",query:e,format:"json",...t});listingMarkFixedPriceAsSold=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/sold`,method:"PUT",secure:!0,...t});listingMarkFixedPriceAsNotSold=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/not-sold`,method:"PUT",secure:!0,...t});listingRequestApproval=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/request-approval`,method:"PUT",secure:!0,...t});listingAccept=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/accept`,method:"PUT",secure:!0,...t});listingReject=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/reject`,method:"PUT",secure:!0,...t});listingSellerAccept=(e,t={})=>this.request({path:`/api/v1/seller/listing/${e}/accept`,method:"PUT",secure:!0,...t});listingSellerRequestEdit=(e,t={})=>this.request({path:`/api/v1/seller/listing/${e}/request-edit`,method:"PUT",secure:!0,...t});listingComingSoon=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/comming-soon`,method:"PUT",secure:!0,...t});listingDetailGetById=(e,t={})=>this.request({path:`/api/v1/listing-detail/${e}`,method:"GET",format:"json",...t});listingDetailFindAllByTenantId=(e,t={})=>this.request({path:"/api/v1/listing-detail",method:"GET",query:e,format:"json",...t});listingDetailFindAllByTenantIdForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/listing-detail",method:"GET",query:e,secure:!0,format:"json",...t});listingDetailFindAllForSeller=(e,t={})=>this.request({path:"/api/v1/seller/listing-detail",method:"GET",query:e,secure:!0,format:"json",...t});listingDetailFindAllForBuyer=(e,t={})=>this.request({path:"/api/v1/buyer/listing-detail",method:"GET",query:e,secure:!0,format:"json",...t});listingStatusCountFindAllByTenantId=(e,t={})=>this.request({path:"/api/v1/listing-status-count",method:"GET",query:e,format:"json",...t});listingStatusCountFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/listing-status-count",method:"GET",query:e,secure:!0,format:"json",...t});paymentMethodGetSetupIntent=(e={})=>this.request({path:"/api/v1/payment-method/setup-intent",method:"GET",secure:!0,format:"json",...e});paymentMethodGetPaymentMethodForUser=(e={})=>this.request({path:"/api/v1/payment-method",method:"GET",secure:!0,format:"json",...e});paymentMethodUpdatePaymentMethodForUser=(e,t={})=>this.request({path:"/api/v1/payment-method",method:"PUT",body:e,secure:!0,type:"application/json",...t});paymentMethodCreatePaymentMethodForUser=(e,t={})=>this.request({path:"/api/v1/payment-method",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});paymentMethodRemovePaymentMethodFromUser=(e={})=>this.request({path:"/api/v1/payment-method",method:"DELETE",secure:!0,...e});productClassFindProductClasses=(e,t={})=>this.request({path:"/api/v1/admin/product-class",method:"GET",query:e,secure:!0,format:"json",...t});productClassAddProductClass=(e,t={})=>this.request({path:"/api/v1/admin/product-class",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});productClassGetProductClassWithAssignedTenants=(e,t,s={})=>this.request({path:`/api/v1/admin/product-class/${e}`,method:"GET",query:t,secure:!0,format:"json",...s});productClassUpdateProductClass=(e,t,s={})=>this.request({path:`/api/v1/admin/product-class/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});productClassDeleteProductClass=(e,t={})=>this.request({path:`/api/v1/admin/product-class/${e}`,method:"DELETE",secure:!0,...t});productClassFindProductClassesByTenantId=(e,t={})=>this.request({path:"/api/v1/product-class",method:"GET",query:e,format:"json",...t});productClassAssignProductClassToTenant=(e,t,s={})=>this.request({path:`/api/v1/dax-admin/tenant/${e}/product-class/${t}`,method:"PUT",secure:!0,...s});productClassRemoveProductClassFromTenant=(e,t,s={})=>this.request({path:`/api/v1/dax-admin/tenant/${e}/product-class/${t}`,method:"DELETE",secure:!0,...s});productGetById=(e,t={})=>this.request({path:`/api/v1/product/${e}`,method:"GET",format:"json",...t});productFindAllByTenantId=(e={})=>this.request({path:"/api/v1/product",method:"GET",format:"json",...e});tenantAdminFindUsers=(e,t={})=>this.request({path:"/api/v1/admin/user",method:"POST",body:e,type:"application/json",format:"json",...t});tenantAdminGetById=(e,t={})=>this.request({path:`/api/v1/admin/user/${e}`,method:"GET",format:"json",...t});tenantAdminRemoveAllRolesFromUser=(e,t={})=>this.request({path:`/api/v1/admin/user/${e}/remove-all-roles`,method:"PUT",...t});tenantAdminAssignRoleToUser=(e,t,s={})=>this.request({path:`/api/v1/admin/user/${e}/assign-role`,method:"PUT",body:t,type:"application/json",...s});vehicleDetailsGet=(e,t={})=>this.request({path:"/api/v1/vehicle/details",method:"GET",query:e,format:"json",...t});webhookProcessedPaymentWebhook=(e={})=>this.request({path:"/api/v1/webhook/payment",method:"POST",format:"json",...e});workerGetWorkersStatuses=(e={})=>this.request({path:"/api/v1/dax-admin/worker",method:"GET",format:"json",...e});workerManageListingLifeCycleWorkerStatus=(e,t={})=>this.request({path:"/api/v1/dax-admin/worker/listing-life-cycle",method:"PUT",query:e,...t});workerManageProcessingPaymentsWorkerStatus=(e,t={})=>this.request({path:"/api/v1/dax-admin/worker/processing-payments",method:"PUT",query:e,...t});workerManageEmailWorkerStatus=(e,t={})=>this.request({path:"/api/v1/dax-admin/worker/email",method:"PUT",query:e,...t});workerTesting=(e={})=>this.request({path:"/api/v1/dax-admin/worker/testing",method:"PUT",...e})};var d=class extends n{currencyUpdate=(e,t,s={})=>this.request({path:`/closed-api/v1/currency/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s});currencyDelete=(e,t={})=>this.request({path:`/closed-api/v1/currency/${e}`,method:"DELETE",secure:!0,...t});currencyAdd=(e,t={})=>this.request({path:"/closed-api/v1/currency",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});productUpdate=(e,t,s={})=>this.request({path:`/closed-api/v1/product/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});productDelete=(e,t,s={})=>this.request({path:`/closed-api/v1/product/${e}`,method:"DELETE",query:t,secure:!0,...s});productCreate=(e,t={})=>this.request({path:"/closed-api/v1/product",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});reportsGetActiveUserSubscriptions=(e={})=>this.request({path:"/closed-api/v1/reports/active-user-subscriptions",method:"GET",secure:!0,format:"json",...e});reportsGetBidsForNotSoldListings=(e={})=>this.request({path:"/closed-api/v1/reports/bids-for-not-sold-listings",method:"GET",secure:!0,format:"json",...e});tenantFindAll=(e,t={})=>this.request({path:"/closed-api/v1/tenant",method:"GET",query:e,secure:!0,format:"json",...t});tenantCreate=(e,t={})=>this.request({path:"/closed-api/v1/tenant",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};var P={baseUrl:"/dax-api"},c=new m(P),w=new d(P),I=(a,e,t={})=>c.listingDetailFindAllByTenantId({...a?{listingType:a}:{},...e?{listingStatus:e}:{}},t),J=(a,e={})=>c.listingDetailGetById(a,e),k=(a,e,t={})=>c.listingStatusCountFindAllByTenantId({...a?{listingType:a}:{},...e?{listingStatus:e}:{}},t);export{m as Api,d as ClosedApi,P as apiConfig,c as daxApi,w as daxClosedApi,J as listingDetailById,I as listingDetailFindAll,k as listingStatusCountFindAll};
|
|
1
|
+
var h=class extends Error{constructor(t,s){super(t);this.httpResponse=s}};var n=class{baseUrl="https://localhost:44488";securityData=null;securityWorker;abortControllers=new Map;customFetch=(...e)=>fetch(...e);baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};constructor(e={}){Object.assign(this,e)}setSecurityData=e=>{this.securityData=e};encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent(typeof t=="number"?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(r=>this.encodeQueryParam(t,r)).join("&")}toQueryString(e){let t=e||{};return Object.keys(t).filter(r=>typeof t[r]<"u").map(r=>Array.isArray(t[r])?this.addArrayQueryParam(t,r):this.addQueryParam(t,r)).join("&")}addQueryParams(e){let t=this.toQueryString(e);return t?`?${t}`:""}contentFormatters={"application/json":e=>e!==null&&(typeof e=="object"||typeof e=="string")?JSON.stringify(e):e,"text/plain":e=>e!==null&&typeof e!="string"?JSON.stringify(e):e,"multipart/form-data":e=>Object.keys(e||{}).reduce((t,s)=>{let r=e[s];return t.append(s,r instanceof Blob?r:typeof r=="object"&&r!==null?JSON.stringify(r):`${r}`),t},new FormData),"application/x-www-form-urlencoded":e=>this.toQueryString(e)};mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}createAbortSignal=e=>{if(this.abortControllers.has(e)){let s=this.abortControllers.get(e);return s?s.signal:void 0}let t=new AbortController;return this.abortControllers.set(e,t),t.signal};abortRequest=e=>{let t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))};abortPreviousRequestAndCreateSignal(e){return this.abortRequest(e),this.createAbortSignal(e)}request=async({body:e,secure:t,path:s,type:r,query:y,format:R,baseUrl:f,cancelToken:l,...v})=>{let b=(typeof t=="boolean"?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},o=this.mergeRequestParams(v,b),q=y&&this.toQueryString(y),F=this.contentFormatters[r||"application/json"],T=R||o.format,C=o.signal??this.abortPreviousRequestAndCreateSignal(l??s);return this.customFetch(`${f||this.baseUrl||""}${s}${q?`?${q}`:""}`,{...o,headers:{...o.headers||{},...r&&r!=="multipart/form-data"?{"Content-Type":r}:{}},signal:C,body:typeof e>"u"||e===null?null:F(e)}).then(async p=>{let i=p;i.data=null,i.error=null;let g=T?await p[T]().then(u=>(i.ok?i.data=u:i.error=u,i)).catch(u=>(i.error=u,i)):i;if(l&&this.abortControllers.delete(l),!p.ok)throw new h("HttpClient response error",g);return g.data})}};var m=class extends n{attachmentGetDirectUploadUrl=(e={})=>this.request({path:"/api/v1/attachment/direct-upload",method:"GET",secure:!0,format:"json",...e});attachmentGetDirectUploadImageStatus=(e,t={})=>this.request({path:`/api/v1/attachment/direct-upload/${e}`,method:"GET",secure:!0,format:"json",...t});attachmentGetBatchDirectUploadUrl=(e={})=>this.request({path:"/api/v1/attachment/batch-direct-upload",method:"GET",secure:!0,format:"json",...e});attachmentFindAll=(e,t,s={})=>this.request({path:`/api/v1/item/${e}/attachment`,method:"GET",query:t,format:"json",...s});attachmentCreate=(e,t,s={})=>this.request({path:`/api/v1/item/${e}/attachment`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});attachmentUpdate=(e,t,s,r={})=>this.request({path:`/api/v1/item/${e}/attachment/${t}`,method:"PUT",body:s,secure:!0,type:"application/json",format:"json",...r});attachmentDelete=(e,t,s={})=>this.request({path:`/api/v1/item/${e}/attachment/${t}`,method:"DELETE",secure:!0,...s});bidsFindAllForAdmin=(e,t,s={})=>this.request({path:`/api/v1/admin/auction/${e}/bid`,method:"GET",query:t,secure:!0,format:"json",...s});bidsFindAll=(e,t={})=>this.request({path:`/api/v1/auction/${e}/bid`,method:"GET",format:"json",...t});bidsCreate=(e,t,s={})=>this.request({path:`/api/v1/auction/${e}/bid`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});bidsDelete=(e,t,s,r={})=>this.request({path:`/api/v1/auction/${e}/bid/${t}`,method:"DELETE",body:s,secure:!0,type:"application/json",...r});commentFindAll=(e,t,s={})=>this.request({path:`/api/v1/listings/${e}/comments`,method:"GET",query:t,format:"json",...s});commentCreate=(e,t,s={})=>this.request({path:`/api/v1/listings/${e}/comments`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});commentDelete=(e,t,s={})=>this.request({path:`/api/v1/listings/${e}/comments/${t}`,method:"DELETE",secure:!0,...s});currencyGetByCode=(e,t,s={})=>this.request({path:`/api/v1/currency/${e}`,method:"GET",query:t,format:"json",...s});currencyFindAll=(e,t={})=>this.request({path:"/api/v1/currency",method:"GET",query:e,format:"json",...t});feeGetById=(e,t,s={})=>this.request({path:`/api/v1/fee/${e}`,method:"GET",query:t,secure:!0,format:"json",...s});feeUpdate=(e,t,s={})=>this.request({path:`/api/v1/fee/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});feeDelete=(e,t={})=>this.request({path:`/api/v1/fee/${e}`,method:"DELETE",secure:!0,...t});feeFindAll=(e,t={})=>this.request({path:"/api/v1/fee",method:"GET",query:e,secure:!0,format:"json",...t});feeCreate=(e,t={})=>this.request({path:"/api/v1/fee",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});fixedPriceOfferFindOffersForAdmin=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/offer`,method:"GET",secure:!0,format:"json",...t});fixedPriceOfferFindOffers=(e,t={})=>this.request({path:`/api/v1/listing/${e}/offer`,method:"GET",secure:!0,format:"json",...t});fixedPriceOfferCreateOffer=(e,t,s={})=>this.request({path:`/api/v1/listing/${e}/offer`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});fixedPriceOfferBuyNow=(e,t,s={})=>this.request({path:`/api/v1/listing/${e}/buy-now`,method:"POST",body:t,secure:!0,type:"application/json",format:"json",...s});fixedPriceOfferAcceptOffer=(e,t,s,r={})=>this.request({path:`/api/v1/listing/${e}/offer/${t}/accept`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...r});fixedPriceOfferRejectOffer=(e,t,s,r={})=>this.request({path:`/api/v1/listing/${e}/offer/${t}/reject`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...r});fixedPriceOfferCreateCounterOffer=(e,t,s,r={})=>this.request({path:`/api/v1/listing/${e}/offer/${t}/counter-offer`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...r});fixedPriceOfferOfferRead=(e,t,s={})=>this.request({path:`/api/v1/listing/${e}/offer/${t}/mark-as-read`,method:"POST",secure:!0,format:"json",...s});heartbeatGet=(e={})=>this.request({path:"/api/v1/heartbeat",method:"GET",format:"json",...e});inquiryFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/inquiries",method:"GET",query:e,secure:!0,format:"json",...t});inquiryGetByIdForAdmin=(e,t={})=>this.request({path:`/api/v1/admin/inquiries/${e}`,method:"GET",secure:!0,format:"json",...t});inquiryDeleteForAdmin=(e,t={})=>this.request({path:`/api/v1/admin/inquiries/${e}`,method:"DELETE",secure:!0,...t});inquiryCreateSubmitEmail=(e,t={})=>this.request({path:"/api/v1/inquiries/submit-email",method:"POST",body:e,type:"application/json",format:"json",...t});inquiryCreateContactUs=(e,t={})=>this.request({path:"/api/v1/inquiries/contact-us",method:"POST",body:e,type:"application/json",format:"json",...t});inquiryCreateWatchSell=(e,t={})=>this.request({path:"/api/v1/inquiries/watch-sell",method:"POST",body:e,type:"application/json",format:"json",...t});inquiryCreateWatchInquiry=(e,t={})=>this.request({path:"/api/v1/inquiries/watch-inquiry",method:"POST",body:e,type:"application/json",format:"json",...t});itemFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/item",method:"GET",query:e,secure:!0,format:"json",...t});itemGetForAdminById=(e,t,s={})=>this.request({path:`/api/v1/admin/item/${e}`,method:"GET",query:t,secure:!0,format:"json",...s});itemUpdateForAdmin=(e,t,s={})=>this.request({path:`/api/v1/admin/item/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});itemAccept=(e,t={})=>this.request({path:`/api/v1/admin/item/${e}/accept`,method:"PUT",secure:!0,...t});itemReject=(e,t={})=>this.request({path:`/api/v1/admin/item/${e}/reject`,method:"PUT",secure:!0,...t});itemDelete=(e,t={})=>this.request({path:`/api/v1/seller/item/${e}`,method:"DELETE",secure:!0,...t});itemGetForSellerById=(e,t={})=>this.request({path:`/api/v1/seller/item/${e}`,method:"GET",secure:!0,format:"json",...t});itemUpdateForSeller=(e,t,s={})=>this.request({path:`/api/v1/seller/item/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});itemCreateProposal=(e,t={})=>this.request({path:`/api/v1/seller/item/${e}/create-proposal`,method:"PUT",secure:!0,...t});itemFindAllForSeller=(e={})=>this.request({path:"/api/v1/seller/item",method:"GET",secure:!0,format:"json",...e});itemCreateDraftOrProposal=(e,t={})=>this.request({path:"/api/v1/seller/item",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});itemStatusCountFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/item-status-count",method:"GET",query:e,secure:!0,format:"json",...t});listingGetForAdminById=(e,t,s={})=>this.request({path:`/api/v1/admin/listing/${e}`,method:"GET",query:t,secure:!0,format:"json",...s});listingUpdate=(e,t,s={})=>this.request({path:`/api/v1/admin/listing/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});listingDelete=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}`,method:"DELETE",secure:!0,...t});listingWithdraw=(e,t,s={})=>this.request({path:`/api/v1/admin/listing/${e}/withdraw`,method:"PUT",body:t,secure:!0,type:"application/json",...s});listingFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/listing",method:"GET",query:e,secure:!0,format:"json",...t});listingUpdateProperties=(e,t={})=>this.request({path:"/api/v1/admin/listing",method:"PUT",body:e,secure:!0,type:"application/json",...t});listingCreate=(e,t={})=>this.request({path:"/api/v1/admin/listing",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});listingGetForSellerById=(e,t={})=>this.request({path:`/api/v1/seller/listing/${e}`,method:"GET",secure:!0,format:"json",...t});listingFindAllForSeller=(e,t={})=>this.request({path:"/api/v1/seller/listing",method:"GET",query:e,secure:!0,format:"json",...t});listingGetForBuyerById=(e,t={})=>this.request({path:`/api/v1/buyer/listing/${e}`,method:"GET",secure:!0,format:"json",...t});listingFindAllForBuyer=(e,t={})=>this.request({path:"/api/v1/buyer/listing",method:"GET",query:e,secure:!0,format:"json",...t});listingGetById=(e,t={})=>this.request({path:`/api/v1/listing/${e}`,method:"GET",format:"json",...t});listingWatchOrNot=(e,t,s={})=>this.request({path:`/api/v1/listing/${e}/watch-unwatch`,method:"PUT",body:t,secure:!0,type:"application/json",...s});listingFindAll=(e,t={})=>this.request({path:"/api/v1/listing",method:"GET",query:e,format:"json",...t});listingMarkFixedPriceAsSold=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/sold`,method:"PUT",secure:!0,...t});listingMarkFixedPriceAsNotSold=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/not-sold`,method:"PUT",secure:!0,...t});listingRequestPublish=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/request-publish`,method:"PUT",secure:!0,...t});listingRequestApproval=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/request-approval`,method:"PUT",secure:!0,...t});listingAccept=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/accept`,method:"PUT",secure:!0,...t});listingReject=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/reject`,method:"PUT",secure:!0,...t});listingSellerAccept=(e,t={})=>this.request({path:`/api/v1/seller/listing/${e}/accept`,method:"PUT",secure:!0,...t});listingSellerRequestEdit=(e,t={})=>this.request({path:`/api/v1/seller/listing/${e}/request-edit`,method:"PUT",secure:!0,...t});listingComingSoon=(e,t={})=>this.request({path:`/api/v1/admin/listing/${e}/comming-soon`,method:"PUT",secure:!0,...t});listingDetailGetById=(e,t={})=>this.request({path:`/api/v1/listing-detail/${e}`,method:"GET",format:"json",...t});listingDetailFindAllByTenantId=(e,t={})=>this.request({path:"/api/v1/listing-detail",method:"GET",query:e,format:"json",...t});listingDetailFindAllByTenantIdForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/listing-detail",method:"GET",query:e,secure:!0,format:"json",...t});listingDetailFindAllForSeller=(e,t={})=>this.request({path:"/api/v1/seller/listing-detail",method:"GET",query:e,secure:!0,format:"json",...t});listingDetailFindAllForBuyer=(e,t={})=>this.request({path:"/api/v1/buyer/listing-detail",method:"GET",query:e,secure:!0,format:"json",...t});listingStatusCountFindAllByTenantId=(e,t={})=>this.request({path:"/api/v1/listing-status-count",method:"GET",query:e,format:"json",...t});listingStatusCountFindAllForAdmin=(e,t={})=>this.request({path:"/api/v1/admin/listing-status-count",method:"GET",query:e,secure:!0,format:"json",...t});paymentMethodGetSetupIntent=(e={})=>this.request({path:"/api/v1/payment-method/setup-intent",method:"GET",secure:!0,format:"json",...e});paymentMethodGetPaymentMethodForUser=(e={})=>this.request({path:"/api/v1/payment-method",method:"GET",secure:!0,format:"json",...e});paymentMethodUpdatePaymentMethodForUser=(e,t={})=>this.request({path:"/api/v1/payment-method",method:"PUT",body:e,secure:!0,type:"application/json",...t});paymentMethodCreatePaymentMethodForUser=(e,t={})=>this.request({path:"/api/v1/payment-method",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});paymentMethodRemovePaymentMethodFromUser=(e={})=>this.request({path:"/api/v1/payment-method",method:"DELETE",secure:!0,...e});productClassFindProductClasses=(e,t={})=>this.request({path:"/api/v1/admin/product-class",method:"GET",query:e,secure:!0,format:"json",...t});productClassAddProductClass=(e,t={})=>this.request({path:"/api/v1/admin/product-class",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});productClassGetProductClassWithAssignedTenants=(e,t,s={})=>this.request({path:`/api/v1/admin/product-class/${e}`,method:"GET",query:t,secure:!0,format:"json",...s});productClassUpdateProductClass=(e,t,s={})=>this.request({path:`/api/v1/admin/product-class/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});productClassDeleteProductClass=(e,t={})=>this.request({path:`/api/v1/admin/product-class/${e}`,method:"DELETE",secure:!0,...t});productClassFindProductClassesByTenantId=(e,t={})=>this.request({path:"/api/v1/product-class",method:"GET",query:e,format:"json",...t});productClassAssignProductClassToTenant=(e,t,s={})=>this.request({path:`/api/v1/dax-admin/tenant/${e}/product-class/${t}`,method:"PUT",secure:!0,...s});productClassRemoveProductClassFromTenant=(e,t,s={})=>this.request({path:`/api/v1/dax-admin/tenant/${e}/product-class/${t}`,method:"DELETE",secure:!0,...s});productGetById=(e,t={})=>this.request({path:`/api/v1/product/${e}`,method:"GET",format:"json",...t});productFindAllByTenantId=(e={})=>this.request({path:"/api/v1/product",method:"GET",format:"json",...e});tenantAdminFindUsers=(e,t={})=>this.request({path:"/api/v1/admin/user",method:"POST",body:e,type:"application/json",format:"json",...t});tenantAdminGetById=(e,t={})=>this.request({path:`/api/v1/admin/user/${e}`,method:"GET",format:"json",...t});tenantAdminRemoveAllRolesFromUser=(e,t={})=>this.request({path:`/api/v1/admin/user/${e}/remove-all-roles`,method:"PUT",...t});tenantAdminAssignRoleToUser=(e,t,s={})=>this.request({path:`/api/v1/admin/user/${e}/assign-role`,method:"PUT",body:t,type:"application/json",...s});vehicleDetailsGet=(e,t={})=>this.request({path:"/api/v1/vehicle/details",method:"GET",query:e,format:"json",...t});webhookProcessedPaymentWebhook=(e={})=>this.request({path:"/api/v1/webhook/payment",method:"POST",format:"json",...e});workerGetWorkersStatuses=(e={})=>this.request({path:"/api/v1/dax-admin/worker",method:"GET",format:"json",...e});workerManageListingLifeCycleWorkerStatus=(e,t={})=>this.request({path:"/api/v1/dax-admin/worker/listing-life-cycle",method:"PUT",query:e,...t});workerManageProcessingPaymentsWorkerStatus=(e,t={})=>this.request({path:"/api/v1/dax-admin/worker/processing-payments",method:"PUT",query:e,...t});workerManageEmailWorkerStatus=(e,t={})=>this.request({path:"/api/v1/dax-admin/worker/email",method:"PUT",query:e,...t});workerTesting=(e={})=>this.request({path:"/api/v1/dax-admin/worker/testing",method:"PUT",...e})};var d=class extends n{currencyUpdate=(e,t,s={})=>this.request({path:`/closed-api/v1/currency/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",format:"json",...s});currencyDelete=(e,t={})=>this.request({path:`/closed-api/v1/currency/${e}`,method:"DELETE",secure:!0,...t});currencyAdd=(e,t={})=>this.request({path:"/closed-api/v1/currency",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});productUpdate=(e,t,s={})=>this.request({path:`/closed-api/v1/product/${e}`,method:"PUT",body:t,secure:!0,type:"application/json",...s});productDelete=(e,t,s={})=>this.request({path:`/closed-api/v1/product/${e}`,method:"DELETE",query:t,secure:!0,...s});productCreate=(e,t={})=>this.request({path:"/closed-api/v1/product",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t});reportsGetActiveUserSubscriptions=(e={})=>this.request({path:"/closed-api/v1/reports/active-user-subscriptions",method:"GET",secure:!0,format:"json",...e});reportsGetBidsForNotSoldListings=(e={})=>this.request({path:"/closed-api/v1/reports/bids-for-not-sold-listings",method:"GET",secure:!0,format:"json",...e});tenantFindAll=(e,t={})=>this.request({path:"/closed-api/v1/tenant",method:"GET",query:e,secure:!0,format:"json",...t});tenantCreate=(e,t={})=>this.request({path:"/closed-api/v1/tenant",method:"POST",body:e,secure:!0,type:"application/json",format:"json",...t})};var P={baseUrl:"/dax-api"},c=new m(P),w=new d(P),I=(a,e,t={})=>c.listingDetailFindAllByTenantId({...a?{listingType:a}:{},...e?{listingStatus:e}:{}},t),J=(a,e={})=>c.listingDetailGetById(a,e),k=(a,e,t={})=>c.listingStatusCountFindAllByTenantId({...a?{listingType:a}:{},...e?{listingStatus:e}:{}},t);export{m as Api,d as ClosedApi,P as apiConfig,c as daxApi,w as daxClosedApi,J as listingDetailById,I as listingDetailFindAll,k as listingStatusCountFindAll};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/services/generated/dax-api/http-client.ts", "../src/services/generated/dax-api/Api.ts", "../src/services/generated/dax-api/ClosedApi.ts", "../src/services/dax-api-service.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable */\n/* tslint:disable */\n/*\n * ---------------------------------------------------------------\n * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##\n * ## ##\n * ## AUTHOR: acacode ##\n * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##\n * ---------------------------------------------------------------\n */\n\nexport type QueryParamsType = Record<string | number, any>;\nexport type ResponseFormat = keyof Omit<Body, \"body\" | \"bodyUsed\">;\n\nexport interface SwaggerResponse {\n status: {\n success: boolean;\n message: string;\n };\n}\n\nexport class SwaggerMessageError extends Error {\n constructor(\n message: string,\n public url: string,\n public response: SwaggerResponse,\n ) {\n super(message);\n this.name = \"SwaggerMessageError\";\n }\n}\n\nexport function isSwaggerResponse(response: unknown): response is SwaggerResponse {\n return !!(response as Partial<SwaggerResponse>).status;\n}\n\nexport interface FullRequestParams extends Omit<RequestInit, \"body\"> {\n secure?: boolean;\n path: string;\n type?: ContentType;\n query?: QueryParamsType;\n format?: ResponseFormat;\n body?: unknown;\n baseUrl?: string;\n cancelToken?: CancelToken;\n}\n\nexport class HttpClientHttpResponseError<T, E> extends Error {\n constructor(\n message: string,\n public httpResponse: HttpResponse<T, E>,\n ) {\n super(message);\n }\n}\n\nexport type RequestParams = Omit<FullRequestParams, \"body\" | \"method\" | \"query\" | \"path\">;\n\nexport interface ApiConfig<SecurityDataType = unknown> {\n baseUrl?: string;\n baseApiParams?: Omit<RequestParams, \"baseUrl\" | \"cancelToken\" | \"signal\">;\n securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;\n customFetch?: typeof fetch;\n}\n\nexport interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {\n data: D;\n error: E;\n}\n\ntype CancelToken = Symbol | string | number;\n\nexport enum ContentType {\n Json = \"application/json\",\n FormData = \"multipart/form-data\",\n UrlEncoded = \"application/x-www-form-urlencoded\",\n Text = \"text/plain\",\n}\n\nexport class HttpClient<SecurityDataType = unknown> {\n public baseUrl: string = \"https://localhost:44488\";\n private securityData: SecurityDataType | null = null;\n private securityWorker?: ApiConfig<SecurityDataType>[\"securityWorker\"];\n private abortControllers = new Map<CancelToken, AbortController>();\n private customFetch = (...fetchParams: Parameters<typeof fetch>) => fetch(...fetchParams);\n\n private baseApiParams: RequestParams = {\n credentials: \"same-origin\",\n headers: {},\n redirect: \"follow\",\n referrerPolicy: \"no-referrer\",\n };\n\n constructor(apiConfig: ApiConfig<SecurityDataType> = {}) {\n Object.assign(this, apiConfig);\n }\n\n public setSecurityData = (data: SecurityDataType | null) => {\n this.securityData = data;\n };\n\n protected encodeQueryParam(key: string, value: any) {\n const encodedKey = encodeURIComponent(key);\n return `${encodedKey}=${encodeURIComponent(typeof value === \"number\" ? value : `${value}`)}`;\n }\n\n protected addQueryParam(query: QueryParamsType, key: string) {\n return this.encodeQueryParam(key, query[key]);\n }\n\n protected addArrayQueryParam(query: QueryParamsType, key: string) {\n const value = query[key];\n return value.map((v: any) => this.encodeQueryParam(key, v)).join(\"&\");\n }\n\n protected toQueryString(rawQuery?: QueryParamsType): string {\n const query = rawQuery || {};\n const keys = Object.keys(query).filter((key) => \"undefined\" !== typeof query[key]);\n return keys\n .map((key) => (Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)))\n .join(\"&\");\n }\n\n protected addQueryParams(rawQuery?: QueryParamsType): string {\n const queryString = this.toQueryString(rawQuery);\n return queryString ? `?${queryString}` : \"\";\n }\n\n private contentFormatters: Record<ContentType, (input: any) => any> = {\n [ContentType.Json]: (input: any) =>\n input !== null && (typeof input === \"object\" || typeof input === \"string\") ? JSON.stringify(input) : input,\n [ContentType.Text]: (input: any) => (input !== null && typeof input !== \"string\" ? JSON.stringify(input) : input),\n [ContentType.FormData]: (input: any) =>\n Object.keys(input || {}).reduce((formData, key) => {\n const property = input[key];\n formData.append(\n key,\n property instanceof Blob\n ? property\n : typeof property === \"object\" && property !== null\n ? JSON.stringify(property)\n : `${property}`,\n );\n return formData;\n }, new FormData()),\n [ContentType.UrlEncoded]: (input: any) => this.toQueryString(input),\n };\n\n protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams {\n return {\n ...this.baseApiParams,\n ...params1,\n ...(params2 || {}),\n headers: {\n ...(this.baseApiParams.headers || {}),\n ...(params1.headers || {}),\n ...((params2 && params2.headers) || {}),\n },\n };\n }\n\n protected createAbortSignal = (cancelToken: CancelToken): AbortSignal | undefined => {\n if (this.abortControllers.has(cancelToken)) {\n const abortController = this.abortControllers.get(cancelToken);\n if (abortController) {\n return abortController.signal;\n }\n return void 0;\n }\n\n const abortController = new AbortController();\n this.abortControllers.set(cancelToken, abortController);\n return abortController.signal;\n };\n\n public abortRequest = (cancelToken: CancelToken) => {\n const abortController = this.abortControllers.get(cancelToken);\n\n if (abortController) {\n abortController.abort();\n this.abortControllers.delete(cancelToken);\n }\n };\n\n protected abortPreviousRequestAndCreateSignal(cancelToken: CancelToken) {\n this.abortRequest(cancelToken);\n return this.createAbortSignal(cancelToken);\n }\n\n public request = async <T = any, E = any>({\n body,\n secure,\n path,\n type,\n query,\n format,\n baseUrl,\n cancelToken,\n ...params\n }: FullRequestParams): Promise<T> => {\n const secureParams =\n ((typeof secure === \"boolean\" ? secure : this.baseApiParams.secure) &&\n this.securityWorker &&\n (await this.securityWorker(this.securityData))) ||\n {};\n const requestParams = this.mergeRequestParams(params, secureParams);\n const queryString = query && this.toQueryString(query);\n const payloadFormatter = this.contentFormatters[type || ContentType.Json];\n const responseFormat = format || requestParams.format;\n\n const signal = requestParams.signal ?? this.abortPreviousRequestAndCreateSignal(cancelToken ?? path);\n\n return this.customFetch(`${baseUrl || this.baseUrl || \"\"}${path}${queryString ? `?${queryString}` : \"\"}`, {\n ...requestParams,\n headers: {\n ...(requestParams.headers || {}),\n ...(type && type !== ContentType.FormData ? { \"Content-Type\": type } : {}),\n },\n signal,\n body: typeof body === \"undefined\" || body === null ? null : payloadFormatter(body),\n }).then(async (response) => {\n const r = response as HttpResponse<T, E>;\n r.data = null as unknown as T;\n r.error = null as unknown as E;\n\n const data = !responseFormat\n ? r\n : await response[responseFormat]()\n .then((data) => {\n if (r.ok) {\n r.data = data;\n } else {\n r.error = data;\n }\n return r;\n })\n .catch((e) => {\n r.error = e;\n return r;\n });\n\n if (cancelToken) {\n this.abortControllers.delete(cancelToken);\n }\n\n if (!response.ok) {\n throw new HttpClientHttpResponseError(\"HttpClient response error\", data);\n }\n\n return data.data;\n });\n };\n}\n", "/* eslint-disable */\n/* tslint:disable */\n/*\n * ---------------------------------------------------------------\n * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##\n * ## ##\n * ## AUTHOR: acacode ##\n * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##\n * ---------------------------------------------------------------\n */\n\nimport {\n AttachmentCreateRequest,\n AttachmentResponse,\n AttachmentUpdateRequest,\n BidCreateRequest,\n BidDeleteRequest,\n Body,\n ContactUsRequest,\n CreateCommentRequest,\n FeeCreateRequest,\n FeeUpdateRequest,\n FindUsersRequest,\n FixedPriceOfferAcceptOfferRequest,\n FixedPriceOfferBuyNowRequest,\n FixedPriceOfferRejectOfferRequest,\n ItemCreateRequest,\n ItemUpdateRequest,\n ListingCreateRequest,\n ListingUpdatePropertiesRequest,\n ListingUpdateRequest,\n OfferCreateRequest,\n PaymentMethodRequest,\n ProblemDetails,\n ProductClassCreateRequest,\n ProductClassUpdateRequest,\n SubmitEmailRequest,\n TenantUserAssignRoleRequest,\n Type,\n WatchInquiryRequest,\n WatchSellRequest,\n WithdrawListingRequest,\n} from \"./data-contracts\";\nimport { ContentType, HttpClient, RequestParams } from \"./http-client\";\n\nexport class Api<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentGetDirectUploadUrl\n * @summary Get url for attachment direct upload.\n * @request GET:/api/v1/attachment/direct-upload\n * @secure\n * @response `200` `object`\n */\n attachmentGetDirectUploadUrl = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/attachment/direct-upload`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentGetDirectUploadImageStatus\n * @summary Get image status uploaded using direct upload url.\n * @request GET:/api/v1/attachment/direct-upload/{imageId}\n * @secure\n * @response `200` `object`\n */\n attachmentGetDirectUploadImageStatus = <T,>(imageId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/attachment/direct-upload/${imageId}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentGetBatchDirectUploadUrl\n * @summary Get url for attachment batch direct upload.\n * @request GET:/api/v1/attachment/batch-direct-upload\n * @secure\n * @response `200` `object`\n */\n attachmentGetBatchDirectUploadUrl = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/attachment/batch-direct-upload`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentFindAll\n * @summary Get item attachments details\n * @request GET:/api/v1/item/{itemId}/attachment\n * @response `200` `object`\n */\n attachmentFindAll = <T,>(\n itemId: string,\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/item/${itemId}/attachment`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentCreate\n * @summary Create an attachment record.\n * @request POST:/api/v1/item/{itemId}/attachment\n * @secure\n * @response `200` `object`\n */\n attachmentCreate = <T,>(itemId: string, data: AttachmentCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/item/${itemId}/attachment`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentUpdate\n * @summary Update attachment's sort order and category.\n * @request PUT:/api/v1/item/{itemId}/attachment/{id}\n * @secure\n * @response `200` `(AttachmentResponse)[]` Success\n */\n attachmentUpdate = (itemId: string, id: string, data: AttachmentUpdateRequest, params: RequestParams = {}) =>\n this.request<AttachmentResponse[], any>({\n path: `/api/v1/item/${itemId}/attachment/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentDelete\n * @summary Delete an attachment.\n * @request DELETE:/api/v1/item/{itemId}/attachment/{id}\n * @secure\n * @response `200` `File` Success\n */\n attachmentDelete = (itemId: string, id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/item/${itemId}/attachment/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Bids\n * @name BidsFindAllForAdmin\n * @summary Get all bids for Admin for a listing in any status.\n * @request GET:/api/v1/admin/auction/{listingId}/bid\n * @secure\n * @response `200` `object`\n */\n bidsFindAllForAdmin = <T,>(\n listingId: string,\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/auction/${listingId}/bid`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Bids\n * @name BidsFindAll\n * @summary Get all bids for live auction.\n * @request GET:/api/v1/auction/{listingId}/bid\n * @response `200` `object`\n */\n bidsFindAll = <T,>(listingId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/auction/${listingId}/bid`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Bids\n * @name BidsCreate\n * @summary Create a new **bid**\n * @request POST:/api/v1/auction/{listingId}/bid\n * @secure\n * @response `200` `object`\n */\n bidsCreate = <T,>(listingId: string, data: BidCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/auction/${listingId}/bid`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Bids\n * @name BidsDelete\n * @summary Delete an existing bid\n * @request DELETE:/api/v1/auction/{listingId}/bid/{id}\n * @secure\n * @response `200` `File` Success\n */\n bidsDelete = (listingId: string, id: string, data: BidDeleteRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/auction/${listingId}/bid/${id}`,\n method: \"DELETE\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Comment\n * @name CommentFindAll\n * @summary Get all comments and responses for a listing\n * @request GET:/api/v1/listings/{listingId}/comments\n * @response `200` `object`\n */\n commentFindAll = <T,>(\n listingId: string,\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listings/${listingId}/comments`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Comment\n * @name CommentCreate\n * @summary Create a new comment for a listing\n * @request POST:/api/v1/listings/{listingId}/comments\n * @secure\n * @response `200` `object`\n */\n commentCreate = <T,>(listingId: string, data: CreateCommentRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listings/${listingId}/comments`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Comment\n * @name CommentDelete\n * @summary Delete an existing active comment for a tenant's listing\n * @request DELETE:/api/v1/listings/{listingId}/comments/{id}\n * @secure\n * @response `200` `File` Success\n */\n commentDelete = (listingId: string, id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/listings/${listingId}/comments/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyGetByCode\n * @summary Get currency details\n * @request GET:/api/v1/currency/{code}\n * @response `200` `object`\n */\n currencyGetByCode = <T,>(\n code: string,\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/currency/${code}`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyFindAll\n * @summary Get all the currencies\n * @request GET:/api/v1/currency\n * @response `200` `object`\n */\n currencyFindAll = <T,>(\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/currency`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeGetById\n * @summary Get fee details\n * @request GET:/api/v1/fee/{id}\n * @secure\n * @response `200` `object`\n */\n feeGetById = <T,>(\n id: string,\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/fee/${id}`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeUpdate\n * @summary Update an existing active fee\n * @request PUT:/api/v1/fee/{id}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n feeUpdate = (id: string, data: FeeUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/fee/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeDelete\n * @summary Delete an existing active fee for a tenant\n * @request DELETE:/api/v1/fee/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n feeDelete = (id: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/fee/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeFindAll\n * @summary Get all the fees for a tenant\n * @request GET:/api/v1/fee\n * @secure\n * @response `200` `object`\n */\n feeFindAll = <T,>(\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/fee`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeCreate\n * @summary Create a new fee for a tenant\n * @request POST:/api/v1/fee\n * @secure\n * @response `200` `object`\n */\n feeCreate = <T,>(data: FeeCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/fee`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferFindOffersForAdmin\n * @summary Get offers.\n * @request GET:/api/v1/admin/listing/{listingId}/offer\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferFindOffersForAdmin = <T,>(listingId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing/${listingId}/offer`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferFindOffers\n * @summary Get offers.\n * @request GET:/api/v1/listing/{listingId}/offer\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferFindOffers = <T,>(listingId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferCreateOffer\n * @summary Create a new offer.\n * @request POST:/api/v1/listing/{listingId}/offer\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferCreateOffer = <T,>(listingId: string, data: OfferCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferBuyNow\n * @summary Create a new 'buy now' offer.\n * @request POST:/api/v1/listing/{listingId}/buy-now\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferBuyNow = <T,>(listingId: string, data: FixedPriceOfferBuyNowRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/buy-now`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferAcceptOffer\n * @summary Accept an offer.\n * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/accept\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferAcceptOffer = <T,>(\n listingId: string,\n offerId: string,\n data: FixedPriceOfferAcceptOfferRequest,\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer/${offerId}/accept`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferRejectOffer\n * @summary Reject an offer.\n * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/reject\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferRejectOffer = <T,>(\n listingId: string,\n offerId: string,\n data: FixedPriceOfferRejectOfferRequest,\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer/${offerId}/reject`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferCreateCounterOffer\n * @summary Make a counter-offer.\n * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/counter-offer\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferCreateCounterOffer = <T,>(\n listingId: string,\n offerId: string,\n data: OfferCreateRequest,\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer/${offerId}/counter-offer`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferOfferRead\n * @summary Mark an offer as read/viewed.\n * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/mark-as-read\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferOfferRead = <T,>(listingId: string, offerId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer/${offerId}/mark-as-read`,\n method: \"POST\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Heartbeat\n * @name HeartbeatGet\n * @summary Get current datetime from server\n * @request GET:/api/v1/heartbeat\n * @response `200` `object`\n */\n heartbeatGet = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/heartbeat`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryFindAllForAdmin\n * @summary Get all inquiries for tenant (Admin)\n * @request GET:/api/v1/admin/inquiries\n * @secure\n * @response `200` `object`\n */\n inquiryFindAllForAdmin = <T,>(\n query?: {\n type?: Type | null;\n includeInactive?: boolean | null;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/inquiries`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryGetByIdForAdmin\n * @summary Get inquiry by ID (Admin)\n * @request GET:/api/v1/admin/inquiries/{id}\n * @secure\n * @response `200` `object`\n */\n inquiryGetByIdForAdmin = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/inquiries/${id}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryDeleteForAdmin\n * @summary Delete an inquiry (Admin)\n * @request DELETE:/api/v1/admin/inquiries/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n inquiryDeleteForAdmin = (id: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/inquiries/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryCreateSubmitEmail\n * @summary Submit email subscription\n * @request POST:/api/v1/inquiries/submit-email\n * @response `200` `object`\n */\n inquiryCreateSubmitEmail = <T,>(data: SubmitEmailRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/inquiries/submit-email`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryCreateContactUs\n * @summary Submit contact us form\n * @request POST:/api/v1/inquiries/contact-us\n * @response `200` `object`\n */\n inquiryCreateContactUs = <T,>(data: ContactUsRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/inquiries/contact-us`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryCreateWatchSell\n * @summary Submit watch sell request\n * @request POST:/api/v1/inquiries/watch-sell\n * @response `200` `object`\n */\n inquiryCreateWatchSell = <T,>(data: WatchSellRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/inquiries/watch-sell`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryCreateWatchInquiry\n * @summary Submit watch inquiry\n * @request POST:/api/v1/inquiries/watch-inquiry\n * @response `200` `object`\n */\n inquiryCreateWatchInquiry = <T,>(data: WatchInquiryRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/inquiries/watch-inquiry`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemFindAllForAdmin\n * @summary Get a list of all the product items\n * @request GET:/api/v1/admin/item\n * @secure\n * @response `200` `object`\n */\n itemFindAllForAdmin = <T,>(\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n /** item status - comma separate list of statuses (Draft, Proposal, Accepted, Rejected, Listed) */\n itemStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/item`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemGetForAdminById\n * @summary Get item for tenant.\n * @request GET:/api/v1/admin/item/{itemId}\n * @secure\n * @response `200` `object`\n */\n itemGetForAdminById = <T,>(\n itemId: string,\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/item/${itemId}`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemUpdateForAdmin\n * @summary Update an existing item in any status.\n * @request PUT:/api/v1/admin/item/{itemId}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n itemUpdateForAdmin = (itemId: string, data: ItemUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/item/${itemId}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemAccept\n * @summary Accept an item. Can be done by Tenant Admin only.\n * @request PUT:/api/v1/admin/item/{itemId}/accept\n * @secure\n * @response `200` `File` Success\n */\n itemAccept = (itemId: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/item/${itemId}/accept`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemReject\n * @summary Reject an item. Can be done by Tenant Admin only.\n * @request PUT:/api/v1/admin/item/{itemId}/reject\n * @secure\n * @response `200` `File` Success\n */\n itemReject = (itemId: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/item/${itemId}/reject`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemDelete\n * @summary Remove an existing item\n * @request DELETE:/api/v1/seller/item/{itemId}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n itemDelete = (itemId: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/seller/item/${itemId}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemGetForSellerById\n * @summary Get item for tenant\n * @request GET:/api/v1/seller/item/{itemId}\n * @secure\n * @response `200` `object`\n */\n itemGetForSellerById = <T,>(itemId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/seller/item/${itemId}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemUpdateForSeller\n * @summary Update an existing item in Proposal status only.\n * @request PUT:/api/v1/seller/item/{itemId}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n itemUpdateForSeller = (itemId: string, data: ItemUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/seller/item/${itemId}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemCreateProposal\n * @summary Create a proposal from an item in Draft status.\n * @request PUT:/api/v1/seller/item/{itemId}/create-proposal\n * @secure\n * @response `201` `void` Success\n * @response `400` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n itemCreateProposal = (itemId: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/seller/item/${itemId}/create-proposal`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemFindAllForSeller\n * @summary Get a list of all the product items\n * @request GET:/api/v1/seller/item\n * @secure\n * @response `200` `object`\n */\n itemFindAllForSeller = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/seller/item`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemCreateDraftOrProposal\n * @summary Create draft or proposal of an item\n * @request POST:/api/v1/seller/item\n * @secure\n * @response `200` `object`\n */\n itemCreateDraftOrProposal = <T,>(data: ItemCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/seller/item`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ItemStatusCount\n * @name ItemStatusCountFindAllForAdmin\n * @summary Get the count for all the items for a tenant grouped by the item status\n * @request GET:/api/v1/admin/item-status-count\n * @secure\n * @response `200` `object`\n */\n itemStatusCountFindAllForAdmin = <T,>(\n query?: {\n itemStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/item-status-count`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingGetForAdminById\n * @summary Get listing details\n * @request GET:/api/v1/admin/listing/{id}\n * @secure\n * @response `200` `object`\n */\n listingGetForAdminById = <T,>(\n id: string,\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n /**\n * status of the listing\n * @format int32\n */\n status?: number | null;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing/${id}`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingUpdate\n * @summary Update an existing active listing.\n * @request PUT:/api/v1/admin/listing/{id}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n listingUpdate = (id: string, data: ListingUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/listing/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingDelete\n * @summary Delete an active listing.\n * @request DELETE:/api/v1/admin/listing/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n listingDelete = (id: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/listing/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingWithdraw\n * @summary Withdraw a listing.\n * @request PUT:/api/v1/admin/listing/{id}/withdraw\n * @secure\n * @response `200` `File` Success\n */\n listingWithdraw = (id: string, data: WithdrawListingRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/withdraw`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingFindAllForAdmin\n * @summary Get all the listings for the specified tenant\n * @request GET:/api/v1/admin/listing\n * @secure\n * @response `200` `object`\n */\n listingFindAllForAdmin = <T,>(\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n /** listing type - auction or fixedPrice */\n listingType?: string;\n /**\n * status of the listing\n * @format int32\n */\n status?: number | null;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingUpdateProperties\n * @request PUT:/api/v1/admin/listing\n * @secure\n * @response `200` `File`\n */\n listingUpdateProperties = (data: ListingUpdatePropertiesRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingCreate\n * @summary Create a new listing\n * @request POST:/api/v1/admin/listing\n * @secure\n * @response `200` `object`\n */\n listingCreate = <T,>(data: ListingCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingGetForSellerById\n * @summary Get listing details\n * @request GET:/api/v1/seller/listing/{id}\n * @secure\n * @response `200` `object`\n */\n listingGetForSellerById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/seller/listing/${id}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingFindAllForSeller\n * @summary Get all the listings for the specified tenant\n * @request GET:/api/v1/seller/listing\n * @secure\n * @response `200` `object`\n */\n listingFindAllForSeller = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string | null;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/seller/listing`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingGetForBuyerById\n * @summary Get listing details\n * @request GET:/api/v1/buyer/listing/{id}\n * @secure\n * @response `200` `object`\n */\n listingGetForBuyerById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/buyer/listing/${id}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingFindAllForBuyer\n * @summary Get all the listings for the specified tenant\n * @request GET:/api/v1/buyer/listing\n * @secure\n * @response `200` `object`\n */\n listingFindAllForBuyer = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/buyer/listing`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingGetById\n * @summary Get listing details\n * @request GET:/api/v1/listing/{id}\n * @response `200` `object`\n */\n listingGetById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${id}`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingWatchOrNot\n * @summary Add logged in user to, or remove from, the list of users.\n * @request PUT:/api/v1/listing/{id}/watch-unwatch\n * @secure\n * @response `200` `File` Success\n */\n listingWatchOrNot = (id: string, data: Body, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/listing/${id}/watch-unwatch`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingFindAll\n * @summary Get all the listings for the specified tenant\n * @request GET:/api/v1/listing\n * @response `200` `object`\n */\n listingFindAll = <T,>(\n query?: {\n /**\n * page number\n * @format int32\n */\n pageNumber?: number | null;\n /**\n * page size\n * @format int32\n */\n pageSize?: number | null;\n /** listing type - auction or fixedPrice */\n listingType?: string;\n /** sort order */\n sortOrder?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingMarkFixedPriceAsSold\n * @request PUT:/api/v1/admin/listing/{id}/sold\n * @secure\n * @response `200` `File`\n */\n listingMarkFixedPriceAsSold = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/sold`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingMarkFixedPriceAsNotSold\n * @request PUT:/api/v1/admin/listing/{id}/not-sold\n * @secure\n * @response `200` `File`\n */\n listingMarkFixedPriceAsNotSold = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/not-sold`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingRequestApproval\n * @summary Request approval for a listing.\n * @request PUT:/api/v1/admin/listing/{id}/request-approval\n * @secure\n * @response `200` `File` Success\n */\n listingRequestApproval = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/request-approval`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingAccept\n * @summary Accept listing.\n * @request PUT:/api/v1/admin/listing/{id}/accept\n * @secure\n * @response `200` `File` Success\n */\n listingAccept = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/accept`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingReject\n * @summary Reject listing.\n * @request PUT:/api/v1/admin/listing/{id}/reject\n * @secure\n * @response `200` `File` Success\n */\n listingReject = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/reject`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingSellerAccept\n * @summary Accept listing.\n * @request PUT:/api/v1/seller/listing/{id}/accept\n * @secure\n * @response `200` `File` Success\n */\n listingSellerAccept = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/seller/listing/${id}/accept`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingSellerRequestEdit\n * @summary Returns a listing back to Draft for additional changes.\n * @request PUT:/api/v1/seller/listing/{id}/request-edit\n * @secure\n * @response `200` `File` Success\n */\n listingSellerRequestEdit = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/seller/listing/${id}/request-edit`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingComingSoon\n * @summary Move listing to coming soon.\n * @request PUT:/api/v1/admin/listing/{id}/comming-soon\n * @secure\n * @response `200` `File` Success\n */\n listingComingSoon = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/comming-soon`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailGetById\n * @summary Get listing details, including product and item information\n * @request GET:/api/v1/listing-detail/{id}\n * @response `200` `object`\n */\n listingDetailGetById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing-detail/${id}`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailFindAllByTenantId\n * @summary Get all the listing details for the specified tenant, including product and item information\n * @request GET:/api/v1/listing-detail\n * @response `200` `object`\n */\n listingDetailFindAllByTenantId = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing-detail`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailFindAllByTenantIdForAdmin\n * @summary Get all the listing details for the specified tenant, including product and item information\n * @request GET:/api/v1/admin/listing-detail\n * @secure\n * @response `200` `object`\n */\n listingDetailFindAllByTenantIdForAdmin = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing-detail`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailFindAllForSeller\n * @request GET:/api/v1/seller/listing-detail\n * @secure\n * @response `200` `object`\n */\n listingDetailFindAllForSeller = <T,>(\n query?: {\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/seller/listing-detail`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailFindAllForBuyer\n * @request GET:/api/v1/buyer/listing-detail\n * @secure\n * @response `200` `object`\n */\n listingDetailFindAllForBuyer = <T,>(\n query?: {\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/buyer/listing-detail`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingStatusCount\n * @name ListingStatusCountFindAllByTenantId\n * @summary Get the count for all the listings for a tenant grouped by the listing status\n * @request GET:/api/v1/listing-status-count\n * @response `200` `object`\n */\n listingStatusCountFindAllByTenantId = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing-status-count`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingStatusCount\n * @name ListingStatusCountFindAllForAdmin\n * @summary Get the count for all the listings for a tenant grouped by the listing status\n * @request GET:/api/v1/admin/listing-status-count\n * @secure\n * @response `200` `object`\n */\n listingStatusCountFindAllForAdmin = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing-status-count`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodGetSetupIntent\n * @summary Get setup intent - 1st step in setting up Stripe payment method for logged in user.\n * @request GET:/api/v1/payment-method/setup-intent\n * @secure\n * @response `200` `object`\n */\n paymentMethodGetSetupIntent = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/payment-method/setup-intent`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodGetPaymentMethodForUser\n * @summary Get payment method for logged in user.\n * @request GET:/api/v1/payment-method\n * @secure\n * @response `200` `object`\n */\n paymentMethodGetPaymentMethodForUser = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/payment-method`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodUpdatePaymentMethodForUser\n * @summary Updated payment method for logged in user.\n * @request PUT:/api/v1/payment-method\n * @secure\n * @response `200` `File` Success\n */\n paymentMethodUpdatePaymentMethodForUser = (data: PaymentMethodRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/payment-method`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodCreatePaymentMethodForUser\n * @summary Add payment method for logged in user.\n * @request POST:/api/v1/payment-method\n * @secure\n * @response `200` `object`\n */\n paymentMethodCreatePaymentMethodForUser = <T,>(data: PaymentMethodRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/payment-method`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodRemovePaymentMethodFromUser\n * @summary Delete payment method from logged in user.\n * @request DELETE:/api/v1/payment-method\n * @secure\n * @response `200` `File` Success\n */\n paymentMethodRemovePaymentMethodFromUser = (params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/payment-method`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassFindProductClasses\n * @summary Only for Dax Admin. Get all product classes\n * @request GET:/api/v1/admin/product-class\n * @secure\n * @response `200` `object`\n */\n productClassFindProductClasses = <T,>(\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/product-class`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassAddProductClass\n * @summary Only for Dax Admin. Create a new product class\n * @request POST:/api/v1/admin/product-class\n * @secure\n * @response `200` `object`\n */\n productClassAddProductClass = <T,>(data: ProductClassCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/product-class`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassGetProductClassWithAssignedTenants\n * @summary Only for Dax Admin. Get product class for specified id with all tenants assigned to it\n * @request GET:/api/v1/admin/product-class/{id}\n * @secure\n * @response `200` `object`\n */\n productClassGetProductClassWithAssignedTenants = <T,>(\n id: string,\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/product-class/${id}`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassUpdateProductClass\n * @summary Only for Dax Admin. Update an existing active product class.\n * @request PUT:/api/v1/admin/product-class/{id}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n productClassUpdateProductClass = (id: string, data: ProductClassUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/product-class/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassDeleteProductClass\n * @summary Only for Dax Admin. Delete an existing active product class\n * @request DELETE:/api/v1/admin/product-class/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n productClassDeleteProductClass = (id: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/product-class/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassFindProductClassesByTenantId\n * @summary Get Product Classes for a Tenant\n * @request GET:/api/v1/product-class\n * @response `200` `object`\n */\n productClassFindProductClassesByTenantId = <T,>(\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/product-class`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassAssignProductClassToTenant\n * @summary Only for Dax Admin. Assign product classes for specified tenant\n * @request PUT:/api/v1/dax-admin/tenant/{tenantId}/product-class/{id}\n * @secure\n * @response `200` `File` Success\n */\n productClassAssignProductClassToTenant = (tenantId: string, id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/tenant/${tenantId}/product-class/${id}`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassRemoveProductClassFromTenant\n * @summary Only for Dax Admin. Remove product classes from specified tenant\n * @request DELETE:/api/v1/dax-admin/tenant/{tenantId}/product-class/{id}\n * @secure\n * @response `200` `File` Success\n */\n productClassRemoveProductClassFromTenant = (tenantId: string, id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/tenant/${tenantId}/product-class/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductGetById\n * @summary Get product details\n * @request GET:/api/v1/product/{id}\n * @response `200` `object`\n */\n productGetById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/product/${id}`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductFindAllByTenantId\n * @summary Get all the products for the specified tenant\n * @request GET:/api/v1/product\n * @response `200` `object`\n */\n productFindAllByTenantId = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/product`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags TenantAdmin\n * @name TenantAdminFindUsers\n * @request POST:/api/v1/admin/user\n * @response `200` `object`\n */\n tenantAdminFindUsers = <T,>(data: FindUsersRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/user`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags TenantAdmin\n * @name TenantAdminGetById\n * @summary Get the User for the specified id\n * @request GET:/api/v1/admin/user/{id}\n * @response `200` `object`\n */\n tenantAdminGetById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/user/${id}`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags TenantAdmin\n * @name TenantAdminRemoveAllRolesFromUser\n * @summary Block user by removing its role(s).\n * @request PUT:/api/v1/admin/user/{userId}/remove-all-roles\n * @response `200` `File` Success\n */\n tenantAdminRemoveAllRolesFromUser = (userId: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/user/${userId}/remove-all-roles`,\n method: \"PUT\",\n ...params,\n });\n /**\n * No description\n *\n * @tags TenantAdmin\n * @name TenantAdminAssignRoleToUser\n * @summary Add role to user.\n * @request PUT:/api/v1/admin/user/{userId}/assign-role\n * @response `200` `File` Success\n */\n tenantAdminAssignRoleToUser = (userId: string, data: TenantUserAssignRoleRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/user/${userId}/assign-role`,\n method: \"PUT\",\n body: data,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags VehicleDetails\n * @name VehicleDetailsGet\n * @summary Get vehicle details\n * @request GET:/api/v1/vehicle/details\n * @response `200` `object`\n */\n vehicleDetailsGet = <T,>(\n query: {\n /** Vehicle registration number */\n regNumber: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/vehicle/details`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Webhook\n * @name WebhookProcessedPaymentWebhook\n * @summary Process payment events\n * @request POST:/api/v1/webhook/payment\n * @response `200` `object`\n */\n webhookProcessedPaymentWebhook = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/webhook/payment`,\n method: \"POST\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerGetWorkersStatuses\n * @summary Get statuses (enabled/disabled) of all the workers.\n * @request GET:/api/v1/dax-admin/worker\n * @response `200` `object`\n */\n workerGetWorkersStatuses = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/dax-admin/worker`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerManageListingLifeCycleWorkerStatus\n * @request PUT:/api/v1/dax-admin/worker/listing-life-cycle\n * @response `200` `File`\n */\n workerManageListingLifeCycleWorkerStatus = (\n query: {\n status: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/worker/listing-life-cycle`,\n method: \"PUT\",\n query: query,\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerManageProcessingPaymentsWorkerStatus\n * @request PUT:/api/v1/dax-admin/worker/processing-payments\n * @response `200` `File`\n */\n workerManageProcessingPaymentsWorkerStatus = (\n query: {\n status: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/worker/processing-payments`,\n method: \"PUT\",\n query: query,\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerManageEmailWorkerStatus\n * @request PUT:/api/v1/dax-admin/worker/email\n * @response `200` `File`\n */\n workerManageEmailWorkerStatus = (\n query: {\n status: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/worker/email`,\n method: \"PUT\",\n query: query,\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerTesting\n * @request PUT:/api/v1/dax-admin/worker/testing\n * @response `200` `File`\n */\n workerTesting = (params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/worker/testing`,\n method: \"PUT\",\n ...params,\n });\n}\n", "/* eslint-disable */\n/* tslint:disable */\n/*\n * ---------------------------------------------------------------\n * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##\n * ## ##\n * ## AUTHOR: acacode ##\n * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##\n * ---------------------------------------------------------------\n */\n\nimport {\n CurrencyCreateRequest,\n CurrencyResponse,\n CurrencyUpdateRequest,\n ProblemDetails,\n ProductCreateRequest,\n TenantCreateRequest,\n} from \"./data-contracts\";\nimport { ContentType, HttpClient, RequestParams } from \"./http-client\";\n\nexport class ClosedApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyUpdate\n * @summary Update an existing active currency\n * @request PUT:/closed-api/v1/currency/{code}\n * @secure\n * @response `200` `CurrencyResponse` Success\n */\n currencyUpdate = (code: string, data: CurrencyUpdateRequest, params: RequestParams = {}) =>\n this.request<CurrencyResponse, any>({\n path: `/closed-api/v1/currency/${code}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyDelete\n * @summary Delete an existing active currency\n * @request DELETE:/closed-api/v1/currency/{code}\n * @secure\n * @response `200` `File` Success\n */\n currencyDelete = (code: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/closed-api/v1/currency/${code}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyAdd\n * @summary Create a new currency\n * @request POST:/closed-api/v1/currency\n * @secure\n * @response `200` `object`\n */\n currencyAdd = <T,>(data: CurrencyCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/currency`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductUpdate\n * @summary Update an existing active product\n * @request PUT:/closed-api/v1/product/{id}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n productUpdate = (id: string, data: ProductCreateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/closed-api/v1/product/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductDelete\n * @summary Delete an existing active product\n * @request DELETE:/closed-api/v1/product/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n productDelete = (\n id: string,\n query: {\n /**\n * unique id of the product\n * @format guid\n */\n productId: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<void, ProblemDetails>({\n path: `/closed-api/v1/product/${id}`,\n method: \"DELETE\",\n query: query,\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductCreate\n * @summary Create a new product\n * @request POST:/closed-api/v1/product\n * @secure\n * @response `200` `object`\n */\n productCreate = <T,>(data: ProductCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/product`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Reports\n * @name ReportsGetActiveUserSubscriptions\n * @summary Get a list of active users and their newsletter subscription status\n * @request GET:/closed-api/v1/reports/active-user-subscriptions\n * @secure\n * @response `200` `object`\n */\n reportsGetActiveUserSubscriptions = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/reports/active-user-subscriptions`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Reports\n * @name ReportsGetBidsForNotSoldListings\n * @summary Get a bids for listings in the EndedNotSold state in the last 30 days\n * @request GET:/closed-api/v1/reports/bids-for-not-sold-listings\n * @secure\n * @response `200` `object`\n */\n reportsGetBidsForNotSoldListings = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/reports/bids-for-not-sold-listings`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Tenant\n * @name TenantFindAll\n * @summary Get list of all tenants\n * @request GET:/closed-api/v1/tenant\n * @secure\n * @response `200` `object`\n */\n tenantFindAll = <T,>(\n query: {\n /** whether to include inactive tenants */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/closed-api/v1/tenant`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Tenant\n * @name TenantCreate\n * @summary Create a new tenant\n * @request POST:/closed-api/v1/tenant\n * @secure\n * @response `200` `object`\n */\n tenantCreate = <T,>(data: TenantCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/tenant`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n}\n", "import { Api } from \"./generated/dax-api/Api\";\nimport { ClosedApi } from \"./generated/dax-api/ClosedApi\";\nimport { ApiConfig, RequestParams } from \"./generated/dax-api/http-client\";\nimport { ListingDetail } from \"./models/ListingDetail\";\nimport { ListingStatusCountFindAllResponse } from \"./models/ListingStatusCountFindAllResponse\";\n\nexport const apiConfig: ApiConfig = {\n baseUrl: '/dax-api'\n}\n\nexport const daxApi = new Api(apiConfig);\nexport const daxClosedApi = new ClosedApi(apiConfig);\n\nexport const listingDetailFindAll = (listingType: (string|undefined), listingStatus: (string|undefined), params: RequestParams = {}): Promise<ListingDetail[]> => {\n return daxApi.listingDetailFindAllByTenantId<ListingDetail[]>({\n ...(listingType ? {listingType} : {}), \n ...(listingStatus ? {listingStatus} : {})\n }, params);\n}\n\nexport const listingDetailById = (id: string, params: RequestParams = {}): Promise<ListingDetail> => {\n return daxApi.listingDetailGetById<ListingDetail>(id, params);\n}\n\nexport const listingStatusCountFindAll = (listingType: (string|undefined), listingStatus: (string|undefined), params: RequestParams = {}): Promise<ListingStatusCountFindAllResponse[]> => {\n return daxApi.listingStatusCountFindAllByTenantId<ListingStatusCountFindAllResponse[]>({\n ...(listingType ? {listingType} : {}), \n ...(listingStatus ? {listingStatus} : {})\n }, params);\n}\n"],
|
|
5
|
-
"mappings": "AA+CO,IAAMA,EAAN,cAAgD,KAAM,CAC3D,YACEC,EACOC,EACP,CACA,MAAMD,CAAO,EAFN,kBAAAC,CAGT,CACF,EAyBO,IAAMC,EAAN,KAA6C,CAC3C,QAAkB,0BACjB,aAAwC,KACxC,eACA,iBAAmB,IAAI,IACvB,YAAc,IAAIC,IAA0C,MAAM,GAAGA,CAAW,EAEhF,cAA+B,CACrC,YAAa,cACb,QAAS,CAAC,EACV,SAAU,SACV,eAAgB,aAClB,EAEA,YAAYC,EAAyC,CAAC,EAAG,CACvD,OAAO,OAAO,KAAMA,CAAS,CAC/B,CAEO,gBAAmBC,GAAkC,CAC1D,KAAK,aAAeA,CACtB,EAEU,iBAAiBC,EAAaC,EAAY,CAElD,MAAO,GADY,mBAAmBD,CAAG,CACrB,IAAI,mBAAmB,OAAOC,GAAU,SAAWA,EAAQ,GAAGA,CAAK,EAAE,CAAC,EAC5F,CAEU,cAAcC,EAAwBF,EAAa,CAC3D,OAAO,KAAK,iBAAiBA,EAAKE,EAAMF,CAAG,CAAC,CAC9C,CAEU,mBAAmBE,EAAwBF,EAAa,CAEhE,OADcE,EAAMF,CAAG,EACV,IAAKG,GAAW,KAAK,iBAAiBH,EAAKG,CAAC,CAAC,EAAE,KAAK,GAAG,CACtE,CAEU,cAAcC,EAAoC,CAC1D,IAAMF,EAAQE,GAAY,CAAC,EAE3B,OADa,OAAO,KAAKF,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O,IAAMG,EAAuB,CAChC,QAAS,UACb,EAEaC,EAAS,IAAIC,EAAIF,CAAS,EAC1BG,EAAe,IAAIC,EAAUJ,CAAS,EAEtCK,EAAuB,CAACC,EAAiCC,EAAmCC,EAAwB,CAAC,IACvHP,EAAO,+BAAgD,CAC1D,GAAIK,EAAc,CAAC,YAAAA,CAAW,EAAI,CAAC,EACnC,GAAIC,EAAgB,CAAC,cAAAA,CAAa,EAAI,CAAC,CAC3C,EAAGC,CAAM,EAGAC,EAAoB,CAACC,EAAYF,EAAwB,CAAC,IAC5DP,EAAO,qBAAoCS,EAAIF,CAAM,EAGnDG,EAA4B,CAACL,EAAiCC,EAAmCC,EAAwB,CAAC,IAC5HP,EAAO,oCAAyE,CACnF,GAAIK,EAAc,CAAC,YAAAA,CAAW,EAAI,CAAC,EACnC,GAAIC,EAAgB,CAAC,cAAAA,CAAa,EAAI,CAAC,CAC3C,EAAGC,CAAM",
|
|
4
|
+
"sourcesContent": ["/* eslint-disable */\n/* tslint:disable */\n/*\n * ---------------------------------------------------------------\n * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##\n * ## ##\n * ## AUTHOR: acacode ##\n * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##\n * ---------------------------------------------------------------\n */\n\nexport type QueryParamsType = Record<string | number, any>;\nexport type ResponseFormat = keyof Omit<Body, \"body\" | \"bodyUsed\">;\n\nexport interface SwaggerResponse {\n status: {\n success: boolean;\n message: string;\n };\n}\n\nexport class SwaggerMessageError extends Error {\n constructor(\n message: string,\n public url: string,\n public response: SwaggerResponse,\n ) {\n super(message);\n this.name = \"SwaggerMessageError\";\n }\n}\n\nexport function isSwaggerResponse(response: unknown): response is SwaggerResponse {\n return !!(response as Partial<SwaggerResponse>).status;\n}\n\nexport interface FullRequestParams extends Omit<RequestInit, \"body\"> {\n secure?: boolean;\n path: string;\n type?: ContentType;\n query?: QueryParamsType;\n format?: ResponseFormat;\n body?: unknown;\n baseUrl?: string;\n cancelToken?: CancelToken;\n}\n\nexport class HttpClientHttpResponseError<T, E> extends Error {\n constructor(\n message: string,\n public httpResponse: HttpResponse<T, E>,\n ) {\n super(message);\n }\n}\n\nexport type RequestParams = Omit<FullRequestParams, \"body\" | \"method\" | \"query\" | \"path\">;\n\nexport interface ApiConfig<SecurityDataType = unknown> {\n baseUrl?: string;\n baseApiParams?: Omit<RequestParams, \"baseUrl\" | \"cancelToken\" | \"signal\">;\n securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;\n customFetch?: typeof fetch;\n}\n\nexport interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {\n data: D;\n error: E;\n}\n\ntype CancelToken = Symbol | string | number;\n\nexport enum ContentType {\n Json = \"application/json\",\n FormData = \"multipart/form-data\",\n UrlEncoded = \"application/x-www-form-urlencoded\",\n Text = \"text/plain\",\n}\n\nexport class HttpClient<SecurityDataType = unknown> {\n public baseUrl: string = \"https://localhost:44488\";\n private securityData: SecurityDataType | null = null;\n private securityWorker?: ApiConfig<SecurityDataType>[\"securityWorker\"];\n private abortControllers = new Map<CancelToken, AbortController>();\n private customFetch = (...fetchParams: Parameters<typeof fetch>) => fetch(...fetchParams);\n\n private baseApiParams: RequestParams = {\n credentials: \"same-origin\",\n headers: {},\n redirect: \"follow\",\n referrerPolicy: \"no-referrer\",\n };\n\n constructor(apiConfig: ApiConfig<SecurityDataType> = {}) {\n Object.assign(this, apiConfig);\n }\n\n public setSecurityData = (data: SecurityDataType | null) => {\n this.securityData = data;\n };\n\n protected encodeQueryParam(key: string, value: any) {\n const encodedKey = encodeURIComponent(key);\n return `${encodedKey}=${encodeURIComponent(typeof value === \"number\" ? value : `${value}`)}`;\n }\n\n protected addQueryParam(query: QueryParamsType, key: string) {\n return this.encodeQueryParam(key, query[key]);\n }\n\n protected addArrayQueryParam(query: QueryParamsType, key: string) {\n const value = query[key];\n return value.map((v: any) => this.encodeQueryParam(key, v)).join(\"&\");\n }\n\n protected toQueryString(rawQuery?: QueryParamsType): string {\n const query = rawQuery || {};\n const keys = Object.keys(query).filter((key) => \"undefined\" !== typeof query[key]);\n return keys\n .map((key) => (Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)))\n .join(\"&\");\n }\n\n protected addQueryParams(rawQuery?: QueryParamsType): string {\n const queryString = this.toQueryString(rawQuery);\n return queryString ? `?${queryString}` : \"\";\n }\n\n private contentFormatters: Record<ContentType, (input: any) => any> = {\n [ContentType.Json]: (input: any) =>\n input !== null && (typeof input === \"object\" || typeof input === \"string\") ? JSON.stringify(input) : input,\n [ContentType.Text]: (input: any) => (input !== null && typeof input !== \"string\" ? JSON.stringify(input) : input),\n [ContentType.FormData]: (input: any) =>\n Object.keys(input || {}).reduce((formData, key) => {\n const property = input[key];\n formData.append(\n key,\n property instanceof Blob\n ? property\n : typeof property === \"object\" && property !== null\n ? JSON.stringify(property)\n : `${property}`,\n );\n return formData;\n }, new FormData()),\n [ContentType.UrlEncoded]: (input: any) => this.toQueryString(input),\n };\n\n protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams {\n return {\n ...this.baseApiParams,\n ...params1,\n ...(params2 || {}),\n headers: {\n ...(this.baseApiParams.headers || {}),\n ...(params1.headers || {}),\n ...((params2 && params2.headers) || {}),\n },\n };\n }\n\n protected createAbortSignal = (cancelToken: CancelToken): AbortSignal | undefined => {\n if (this.abortControllers.has(cancelToken)) {\n const abortController = this.abortControllers.get(cancelToken);\n if (abortController) {\n return abortController.signal;\n }\n return void 0;\n }\n\n const abortController = new AbortController();\n this.abortControllers.set(cancelToken, abortController);\n return abortController.signal;\n };\n\n public abortRequest = (cancelToken: CancelToken) => {\n const abortController = this.abortControllers.get(cancelToken);\n\n if (abortController) {\n abortController.abort();\n this.abortControllers.delete(cancelToken);\n }\n };\n\n protected abortPreviousRequestAndCreateSignal(cancelToken: CancelToken) {\n this.abortRequest(cancelToken);\n return this.createAbortSignal(cancelToken);\n }\n\n public request = async <T = any, E = any>({\n body,\n secure,\n path,\n type,\n query,\n format,\n baseUrl,\n cancelToken,\n ...params\n }: FullRequestParams): Promise<T> => {\n const secureParams =\n ((typeof secure === \"boolean\" ? secure : this.baseApiParams.secure) &&\n this.securityWorker &&\n (await this.securityWorker(this.securityData))) ||\n {};\n const requestParams = this.mergeRequestParams(params, secureParams);\n const queryString = query && this.toQueryString(query);\n const payloadFormatter = this.contentFormatters[type || ContentType.Json];\n const responseFormat = format || requestParams.format;\n\n const signal = requestParams.signal ?? this.abortPreviousRequestAndCreateSignal(cancelToken ?? path);\n\n return this.customFetch(`${baseUrl || this.baseUrl || \"\"}${path}${queryString ? `?${queryString}` : \"\"}`, {\n ...requestParams,\n headers: {\n ...(requestParams.headers || {}),\n ...(type && type !== ContentType.FormData ? { \"Content-Type\": type } : {}),\n },\n signal,\n body: typeof body === \"undefined\" || body === null ? null : payloadFormatter(body),\n }).then(async (response) => {\n const r = response as HttpResponse<T, E>;\n r.data = null as unknown as T;\n r.error = null as unknown as E;\n\n const data = !responseFormat\n ? r\n : await response[responseFormat]()\n .then((data) => {\n if (r.ok) {\n r.data = data;\n } else {\n r.error = data;\n }\n return r;\n })\n .catch((e) => {\n r.error = e;\n return r;\n });\n\n if (cancelToken) {\n this.abortControllers.delete(cancelToken);\n }\n\n if (!response.ok) {\n throw new HttpClientHttpResponseError(\"HttpClient response error\", data);\n }\n\n return data.data;\n });\n };\n}\n", "/* eslint-disable */\n/* tslint:disable */\n/*\n * ---------------------------------------------------------------\n * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##\n * ## ##\n * ## AUTHOR: acacode ##\n * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##\n * ---------------------------------------------------------------\n */\n\nimport {\n AttachmentCreateRequest,\n AttachmentResponse,\n AttachmentUpdateRequest,\n BidCreateRequest,\n BidDeleteRequest,\n Body,\n ContactUsRequest,\n CreateCommentRequest,\n FeeCreateRequest,\n FeeUpdateRequest,\n FindUsersRequest,\n FixedPriceOfferAcceptOfferRequest,\n FixedPriceOfferBuyNowRequest,\n FixedPriceOfferRejectOfferRequest,\n ItemCreateRequest,\n ItemUpdateRequest,\n ListingCreateRequest,\n ListingUpdatePropertiesRequest,\n ListingUpdateRequest,\n OfferCreateRequest,\n PaymentMethodRequest,\n ProblemDetails,\n ProductClassCreateRequest,\n ProductClassUpdateRequest,\n SubmitEmailRequest,\n TenantUserAssignRoleRequest,\n Type,\n WatchInquiryRequest,\n WatchSellRequest,\n WithdrawListingRequest,\n} from \"./data-contracts\";\nimport { ContentType, HttpClient, RequestParams } from \"./http-client\";\n\nexport class Api<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentGetDirectUploadUrl\n * @summary Get url for attachment direct upload.\n * @request GET:/api/v1/attachment/direct-upload\n * @secure\n * @response `200` `object`\n */\n attachmentGetDirectUploadUrl = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/attachment/direct-upload`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentGetDirectUploadImageStatus\n * @summary Get image status uploaded using direct upload url.\n * @request GET:/api/v1/attachment/direct-upload/{imageId}\n * @secure\n * @response `200` `object`\n */\n attachmentGetDirectUploadImageStatus = <T,>(imageId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/attachment/direct-upload/${imageId}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentGetBatchDirectUploadUrl\n * @summary Get url for attachment batch direct upload.\n * @request GET:/api/v1/attachment/batch-direct-upload\n * @secure\n * @response `200` `object`\n */\n attachmentGetBatchDirectUploadUrl = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/attachment/batch-direct-upload`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentFindAll\n * @summary Get item attachments details\n * @request GET:/api/v1/item/{itemId}/attachment\n * @response `200` `object`\n */\n attachmentFindAll = <T,>(\n itemId: string,\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/item/${itemId}/attachment`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentCreate\n * @summary Create an attachment record.\n * @request POST:/api/v1/item/{itemId}/attachment\n * @secure\n * @response `200` `object`\n */\n attachmentCreate = <T,>(itemId: string, data: AttachmentCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/item/${itemId}/attachment`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentUpdate\n * @summary Update attachment's sort order and category.\n * @request PUT:/api/v1/item/{itemId}/attachment/{id}\n * @secure\n * @response `200` `(AttachmentResponse)[]` Success\n */\n attachmentUpdate = (itemId: string, id: string, data: AttachmentUpdateRequest, params: RequestParams = {}) =>\n this.request<AttachmentResponse[], any>({\n path: `/api/v1/item/${itemId}/attachment/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Attachment\n * @name AttachmentDelete\n * @summary Delete an attachment.\n * @request DELETE:/api/v1/item/{itemId}/attachment/{id}\n * @secure\n * @response `200` `File` Success\n */\n attachmentDelete = (itemId: string, id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/item/${itemId}/attachment/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Bids\n * @name BidsFindAllForAdmin\n * @summary Get all bids for Admin for a listing in any status.\n * @request GET:/api/v1/admin/auction/{listingId}/bid\n * @secure\n * @response `200` `object`\n */\n bidsFindAllForAdmin = <T,>(\n listingId: string,\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/auction/${listingId}/bid`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Bids\n * @name BidsFindAll\n * @summary Get all bids for live auction.\n * @request GET:/api/v1/auction/{listingId}/bid\n * @response `200` `object`\n */\n bidsFindAll = <T,>(listingId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/auction/${listingId}/bid`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Bids\n * @name BidsCreate\n * @summary Create a new **bid**\n * @request POST:/api/v1/auction/{listingId}/bid\n * @secure\n * @response `200` `object`\n */\n bidsCreate = <T,>(listingId: string, data: BidCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/auction/${listingId}/bid`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Bids\n * @name BidsDelete\n * @summary Delete an existing bid\n * @request DELETE:/api/v1/auction/{listingId}/bid/{id}\n * @secure\n * @response `200` `File` Success\n */\n bidsDelete = (listingId: string, id: string, data: BidDeleteRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/auction/${listingId}/bid/${id}`,\n method: \"DELETE\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Comment\n * @name CommentFindAll\n * @summary Get all comments and responses for a listing\n * @request GET:/api/v1/listings/{listingId}/comments\n * @response `200` `object`\n */\n commentFindAll = <T,>(\n listingId: string,\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listings/${listingId}/comments`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Comment\n * @name CommentCreate\n * @summary Create a new comment for a listing\n * @request POST:/api/v1/listings/{listingId}/comments\n * @secure\n * @response `200` `object`\n */\n commentCreate = <T,>(listingId: string, data: CreateCommentRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listings/${listingId}/comments`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Comment\n * @name CommentDelete\n * @summary Delete an existing active comment for a tenant's listing\n * @request DELETE:/api/v1/listings/{listingId}/comments/{id}\n * @secure\n * @response `200` `File` Success\n */\n commentDelete = (listingId: string, id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/listings/${listingId}/comments/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyGetByCode\n * @summary Get currency details\n * @request GET:/api/v1/currency/{code}\n * @response `200` `object`\n */\n currencyGetByCode = <T,>(\n code: string,\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/currency/${code}`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyFindAll\n * @summary Get all the currencies\n * @request GET:/api/v1/currency\n * @response `200` `object`\n */\n currencyFindAll = <T,>(\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/currency`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeGetById\n * @summary Get fee details\n * @request GET:/api/v1/fee/{id}\n * @secure\n * @response `200` `object`\n */\n feeGetById = <T,>(\n id: string,\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/fee/${id}`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeUpdate\n * @summary Update an existing active fee\n * @request PUT:/api/v1/fee/{id}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n feeUpdate = (id: string, data: FeeUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/fee/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeDelete\n * @summary Delete an existing active fee for a tenant\n * @request DELETE:/api/v1/fee/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n feeDelete = (id: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/fee/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeFindAll\n * @summary Get all the fees for a tenant\n * @request GET:/api/v1/fee\n * @secure\n * @response `200` `object`\n */\n feeFindAll = <T,>(\n query: {\n /** include deleted/inactive to the response or not */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/fee`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Fee\n * @name FeeCreate\n * @summary Create a new fee for a tenant\n * @request POST:/api/v1/fee\n * @secure\n * @response `200` `object`\n */\n feeCreate = <T,>(data: FeeCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/fee`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferFindOffersForAdmin\n * @summary Get offers.\n * @request GET:/api/v1/admin/listing/{listingId}/offer\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferFindOffersForAdmin = <T,>(listingId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing/${listingId}/offer`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferFindOffers\n * @summary Get offers.\n * @request GET:/api/v1/listing/{listingId}/offer\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferFindOffers = <T,>(listingId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferCreateOffer\n * @summary Create a new offer.\n * @request POST:/api/v1/listing/{listingId}/offer\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferCreateOffer = <T,>(listingId: string, data: OfferCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferBuyNow\n * @summary Create a new 'buy now' offer.\n * @request POST:/api/v1/listing/{listingId}/buy-now\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferBuyNow = <T,>(listingId: string, data: FixedPriceOfferBuyNowRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/buy-now`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferAcceptOffer\n * @summary Accept an offer.\n * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/accept\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferAcceptOffer = <T,>(\n listingId: string,\n offerId: string,\n data: FixedPriceOfferAcceptOfferRequest,\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer/${offerId}/accept`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferRejectOffer\n * @summary Reject an offer.\n * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/reject\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferRejectOffer = <T,>(\n listingId: string,\n offerId: string,\n data: FixedPriceOfferRejectOfferRequest,\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer/${offerId}/reject`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferCreateCounterOffer\n * @summary Make a counter-offer.\n * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/counter-offer\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferCreateCounterOffer = <T,>(\n listingId: string,\n offerId: string,\n data: OfferCreateRequest,\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer/${offerId}/counter-offer`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags FixedPriceOffer\n * @name FixedPriceOfferOfferRead\n * @summary Mark an offer as read/viewed.\n * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/mark-as-read\n * @secure\n * @response `200` `object`\n */\n fixedPriceOfferOfferRead = <T,>(listingId: string, offerId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${listingId}/offer/${offerId}/mark-as-read`,\n method: \"POST\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Heartbeat\n * @name HeartbeatGet\n * @summary Get current datetime from server\n * @request GET:/api/v1/heartbeat\n * @response `200` `object`\n */\n heartbeatGet = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/heartbeat`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryFindAllForAdmin\n * @summary Get all inquiries for tenant (Admin)\n * @request GET:/api/v1/admin/inquiries\n * @secure\n * @response `200` `object`\n */\n inquiryFindAllForAdmin = <T,>(\n query?: {\n type?: Type | null;\n includeInactive?: boolean | null;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/inquiries`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryGetByIdForAdmin\n * @summary Get inquiry by ID (Admin)\n * @request GET:/api/v1/admin/inquiries/{id}\n * @secure\n * @response `200` `object`\n */\n inquiryGetByIdForAdmin = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/inquiries/${id}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryDeleteForAdmin\n * @summary Delete an inquiry (Admin)\n * @request DELETE:/api/v1/admin/inquiries/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n inquiryDeleteForAdmin = (id: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/inquiries/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryCreateSubmitEmail\n * @summary Submit email subscription\n * @request POST:/api/v1/inquiries/submit-email\n * @response `200` `object`\n */\n inquiryCreateSubmitEmail = <T,>(data: SubmitEmailRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/inquiries/submit-email`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryCreateContactUs\n * @summary Submit contact us form\n * @request POST:/api/v1/inquiries/contact-us\n * @response `200` `object`\n */\n inquiryCreateContactUs = <T,>(data: ContactUsRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/inquiries/contact-us`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryCreateWatchSell\n * @summary Submit watch sell request\n * @request POST:/api/v1/inquiries/watch-sell\n * @response `200` `object`\n */\n inquiryCreateWatchSell = <T,>(data: WatchSellRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/inquiries/watch-sell`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Inquiry\n * @name InquiryCreateWatchInquiry\n * @summary Submit watch inquiry\n * @request POST:/api/v1/inquiries/watch-inquiry\n * @response `200` `object`\n */\n inquiryCreateWatchInquiry = <T,>(data: WatchInquiryRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/inquiries/watch-inquiry`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemFindAllForAdmin\n * @summary Get a list of all the product items\n * @request GET:/api/v1/admin/item\n * @secure\n * @response `200` `object`\n */\n itemFindAllForAdmin = <T,>(\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n /** item status - comma separate list of statuses (Draft, Proposal, Accepted, Rejected, Listed) */\n itemStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/item`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemGetForAdminById\n * @summary Get item for tenant.\n * @request GET:/api/v1/admin/item/{itemId}\n * @secure\n * @response `200` `object`\n */\n itemGetForAdminById = <T,>(\n itemId: string,\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/item/${itemId}`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemUpdateForAdmin\n * @summary Update an existing item in any status.\n * @request PUT:/api/v1/admin/item/{itemId}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n itemUpdateForAdmin = (itemId: string, data: ItemUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/item/${itemId}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemAccept\n * @summary Accept an item. Can be done by Tenant Admin only.\n * @request PUT:/api/v1/admin/item/{itemId}/accept\n * @secure\n * @response `200` `File` Success\n */\n itemAccept = (itemId: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/item/${itemId}/accept`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemReject\n * @summary Reject an item. Can be done by Tenant Admin only.\n * @request PUT:/api/v1/admin/item/{itemId}/reject\n * @secure\n * @response `200` `File` Success\n */\n itemReject = (itemId: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/item/${itemId}/reject`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemDelete\n * @summary Remove an existing item\n * @request DELETE:/api/v1/seller/item/{itemId}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n itemDelete = (itemId: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/seller/item/${itemId}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemGetForSellerById\n * @summary Get item for tenant\n * @request GET:/api/v1/seller/item/{itemId}\n * @secure\n * @response `200` `object`\n */\n itemGetForSellerById = <T,>(itemId: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/seller/item/${itemId}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemUpdateForSeller\n * @summary Update an existing item in Proposal status only.\n * @request PUT:/api/v1/seller/item/{itemId}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n itemUpdateForSeller = (itemId: string, data: ItemUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/seller/item/${itemId}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemCreateProposal\n * @summary Create a proposal from an item in Draft status.\n * @request PUT:/api/v1/seller/item/{itemId}/create-proposal\n * @secure\n * @response `201` `void` Success\n * @response `400` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n itemCreateProposal = (itemId: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/seller/item/${itemId}/create-proposal`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemFindAllForSeller\n * @summary Get a list of all the product items\n * @request GET:/api/v1/seller/item\n * @secure\n * @response `200` `object`\n */\n itemFindAllForSeller = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/seller/item`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Item\n * @name ItemCreateDraftOrProposal\n * @summary Create draft or proposal of an item\n * @request POST:/api/v1/seller/item\n * @secure\n * @response `200` `object`\n */\n itemCreateDraftOrProposal = <T,>(data: ItemCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/seller/item`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ItemStatusCount\n * @name ItemStatusCountFindAllForAdmin\n * @summary Get the count for all the items for a tenant grouped by the item status\n * @request GET:/api/v1/admin/item-status-count\n * @secure\n * @response `200` `object`\n */\n itemStatusCountFindAllForAdmin = <T,>(\n query?: {\n itemStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/item-status-count`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingGetForAdminById\n * @summary Get listing details\n * @request GET:/api/v1/admin/listing/{id}\n * @secure\n * @response `200` `object`\n */\n listingGetForAdminById = <T,>(\n id: string,\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n /**\n * status of the listing\n * @format int32\n */\n status?: number | null;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing/${id}`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingUpdate\n * @summary Update an existing active listing.\n * @request PUT:/api/v1/admin/listing/{id}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n listingUpdate = (id: string, data: ListingUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/listing/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingDelete\n * @summary Delete an active listing.\n * @request DELETE:/api/v1/admin/listing/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n listingDelete = (id: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/listing/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingWithdraw\n * @summary Withdraw a listing.\n * @request PUT:/api/v1/admin/listing/{id}/withdraw\n * @secure\n * @response `200` `File` Success\n */\n listingWithdraw = (id: string, data: WithdrawListingRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/withdraw`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingFindAllForAdmin\n * @summary Get all the listings for the specified tenant\n * @request GET:/api/v1/admin/listing\n * @secure\n * @response `200` `object`\n */\n listingFindAllForAdmin = <T,>(\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n /** listing type - auction or fixedPrice */\n listingType?: string;\n /**\n * status of the listing\n * @format int32\n */\n status?: number | null;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingUpdateProperties\n * @request PUT:/api/v1/admin/listing\n * @secure\n * @response `200` `File`\n */\n listingUpdateProperties = (data: ListingUpdatePropertiesRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingCreate\n * @summary Create a new listing\n * @request POST:/api/v1/admin/listing\n * @secure\n * @response `200` `object`\n */\n listingCreate = <T,>(data: ListingCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingGetForSellerById\n * @summary Get listing details\n * @request GET:/api/v1/seller/listing/{id}\n * @secure\n * @response `200` `object`\n */\n listingGetForSellerById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/seller/listing/${id}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingFindAllForSeller\n * @summary Get all the listings for the specified tenant\n * @request GET:/api/v1/seller/listing\n * @secure\n * @response `200` `object`\n */\n listingFindAllForSeller = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string | null;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/seller/listing`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingGetForBuyerById\n * @summary Get listing details\n * @request GET:/api/v1/buyer/listing/{id}\n * @secure\n * @response `200` `object`\n */\n listingGetForBuyerById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/buyer/listing/${id}`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingFindAllForBuyer\n * @summary Get all the listings for the specified tenant\n * @request GET:/api/v1/buyer/listing\n * @secure\n * @response `200` `object`\n */\n listingFindAllForBuyer = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/buyer/listing`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingGetById\n * @summary Get listing details\n * @request GET:/api/v1/listing/{id}\n * @response `200` `object`\n */\n listingGetById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing/${id}`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingWatchOrNot\n * @summary Add logged in user to, or remove from, the list of users.\n * @request PUT:/api/v1/listing/{id}/watch-unwatch\n * @secure\n * @response `200` `File` Success\n */\n listingWatchOrNot = (id: string, data: Body, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/listing/${id}/watch-unwatch`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingFindAll\n * @summary Get all the listings for the specified tenant\n * @request GET:/api/v1/listing\n * @response `200` `object`\n */\n listingFindAll = <T,>(\n query?: {\n /**\n * page number\n * @format int32\n */\n pageNumber?: number | null;\n /**\n * page size\n * @format int32\n */\n pageSize?: number | null;\n /** listing type - auction or fixedPrice */\n listingType?: string;\n /** sort order */\n sortOrder?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingMarkFixedPriceAsSold\n * @request PUT:/api/v1/admin/listing/{id}/sold\n * @secure\n * @response `200` `File`\n */\n listingMarkFixedPriceAsSold = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/sold`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingMarkFixedPriceAsNotSold\n * @request PUT:/api/v1/admin/listing/{id}/not-sold\n * @secure\n * @response `200` `File`\n */\n listingMarkFixedPriceAsNotSold = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/not-sold`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingRequestPublish\n * @summary Request publish a draft for a listing to live.\n * @request PUT:/api/v1/admin/listing/{id}/request-publish\n * @secure\n * @response `200` `File` Success\n */\n listingRequestPublish = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/request-publish`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingRequestApproval\n * @summary Request approval for a listing.\n * @request PUT:/api/v1/admin/listing/{id}/request-approval\n * @secure\n * @response `200` `File` Success\n */\n listingRequestApproval = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/request-approval`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingAccept\n * @summary Accept listing.\n * @request PUT:/api/v1/admin/listing/{id}/accept\n * @secure\n * @response `200` `File` Success\n */\n listingAccept = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/accept`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingReject\n * @summary Reject listing.\n * @request PUT:/api/v1/admin/listing/{id}/reject\n * @secure\n * @response `200` `File` Success\n */\n listingReject = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/reject`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingSellerAccept\n * @summary Accept listing.\n * @request PUT:/api/v1/seller/listing/{id}/accept\n * @secure\n * @response `200` `File` Success\n */\n listingSellerAccept = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/seller/listing/${id}/accept`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingSellerRequestEdit\n * @summary Returns a listing back to Draft for additional changes.\n * @request PUT:/api/v1/seller/listing/{id}/request-edit\n * @secure\n * @response `200` `File` Success\n */\n listingSellerRequestEdit = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/seller/listing/${id}/request-edit`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Listing\n * @name ListingComingSoon\n * @summary Move listing to coming soon.\n * @request PUT:/api/v1/admin/listing/{id}/comming-soon\n * @secure\n * @response `200` `File` Success\n */\n listingComingSoon = (id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/listing/${id}/comming-soon`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailGetById\n * @summary Get listing details, including product and item information\n * @request GET:/api/v1/listing-detail/{id}\n * @response `200` `object`\n */\n listingDetailGetById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/listing-detail/${id}`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailFindAllByTenantId\n * @summary Get all the listing details for the specified tenant, including product and item information\n * @request GET:/api/v1/listing-detail\n * @response `200` `object`\n */\n listingDetailFindAllByTenantId = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing-detail`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailFindAllByTenantIdForAdmin\n * @summary Get all the listing details for the specified tenant, including product and item information\n * @request GET:/api/v1/admin/listing-detail\n * @secure\n * @response `200` `object`\n */\n listingDetailFindAllByTenantIdForAdmin = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing-detail`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailFindAllForSeller\n * @request GET:/api/v1/seller/listing-detail\n * @secure\n * @response `200` `object`\n */\n listingDetailFindAllForSeller = <T,>(\n query?: {\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/seller/listing-detail`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingDetail\n * @name ListingDetailFindAllForBuyer\n * @request GET:/api/v1/buyer/listing-detail\n * @secure\n * @response `200` `object`\n */\n listingDetailFindAllForBuyer = <T,>(\n query?: {\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/buyer/listing-detail`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingStatusCount\n * @name ListingStatusCountFindAllByTenantId\n * @summary Get the count for all the listings for a tenant grouped by the listing status\n * @request GET:/api/v1/listing-status-count\n * @response `200` `object`\n */\n listingStatusCountFindAllByTenantId = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/listing-status-count`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ListingStatusCount\n * @name ListingStatusCountFindAllForAdmin\n * @summary Get the count for all the listings for a tenant grouped by the listing status\n * @request GET:/api/v1/admin/listing-status-count\n * @secure\n * @response `200` `object`\n */\n listingStatusCountFindAllForAdmin = <T,>(\n query?: {\n /** listing type - auction or fixedPrice */\n listingType?: string;\n listingStatus?: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/listing-status-count`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodGetSetupIntent\n * @summary Get setup intent - 1st step in setting up Stripe payment method for logged in user.\n * @request GET:/api/v1/payment-method/setup-intent\n * @secure\n * @response `200` `object`\n */\n paymentMethodGetSetupIntent = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/payment-method/setup-intent`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodGetPaymentMethodForUser\n * @summary Get payment method for logged in user.\n * @request GET:/api/v1/payment-method\n * @secure\n * @response `200` `object`\n */\n paymentMethodGetPaymentMethodForUser = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/payment-method`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodUpdatePaymentMethodForUser\n * @summary Updated payment method for logged in user.\n * @request PUT:/api/v1/payment-method\n * @secure\n * @response `200` `File` Success\n */\n paymentMethodUpdatePaymentMethodForUser = (data: PaymentMethodRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/payment-method`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodCreatePaymentMethodForUser\n * @summary Add payment method for logged in user.\n * @request POST:/api/v1/payment-method\n * @secure\n * @response `200` `object`\n */\n paymentMethodCreatePaymentMethodForUser = <T,>(data: PaymentMethodRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/payment-method`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags PaymentMethod\n * @name PaymentMethodRemovePaymentMethodFromUser\n * @summary Delete payment method from logged in user.\n * @request DELETE:/api/v1/payment-method\n * @secure\n * @response `200` `File` Success\n */\n paymentMethodRemovePaymentMethodFromUser = (params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/payment-method`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassFindProductClasses\n * @summary Only for Dax Admin. Get all product classes\n * @request GET:/api/v1/admin/product-class\n * @secure\n * @response `200` `object`\n */\n productClassFindProductClasses = <T,>(\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/product-class`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassAddProductClass\n * @summary Only for Dax Admin. Create a new product class\n * @request POST:/api/v1/admin/product-class\n * @secure\n * @response `200` `object`\n */\n productClassAddProductClass = <T,>(data: ProductClassCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/product-class`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassGetProductClassWithAssignedTenants\n * @summary Only for Dax Admin. Get product class for specified id with all tenants assigned to it\n * @request GET:/api/v1/admin/product-class/{id}\n * @secure\n * @response `200` `object`\n */\n productClassGetProductClassWithAssignedTenants = <T,>(\n id: string,\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/admin/product-class/${id}`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassUpdateProductClass\n * @summary Only for Dax Admin. Update an existing active product class.\n * @request PUT:/api/v1/admin/product-class/{id}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n productClassUpdateProductClass = (id: string, data: ProductClassUpdateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/product-class/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassDeleteProductClass\n * @summary Only for Dax Admin. Delete an existing active product class\n * @request DELETE:/api/v1/admin/product-class/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n productClassDeleteProductClass = (id: string, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/api/v1/admin/product-class/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassFindProductClassesByTenantId\n * @summary Get Product Classes for a Tenant\n * @request GET:/api/v1/product-class\n * @response `200` `object`\n */\n productClassFindProductClassesByTenantId = <T,>(\n query: {\n /** whether to include inactive data */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/product-class`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassAssignProductClassToTenant\n * @summary Only for Dax Admin. Assign product classes for specified tenant\n * @request PUT:/api/v1/dax-admin/tenant/{tenantId}/product-class/{id}\n * @secure\n * @response `200` `File` Success\n */\n productClassAssignProductClassToTenant = (tenantId: string, id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/tenant/${tenantId}/product-class/${id}`,\n method: \"PUT\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags ProductClass\n * @name ProductClassRemoveProductClassFromTenant\n * @summary Only for Dax Admin. Remove product classes from specified tenant\n * @request DELETE:/api/v1/dax-admin/tenant/{tenantId}/product-class/{id}\n * @secure\n * @response `200` `File` Success\n */\n productClassRemoveProductClassFromTenant = (tenantId: string, id: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/tenant/${tenantId}/product-class/${id}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductGetById\n * @summary Get product details\n * @request GET:/api/v1/product/{id}\n * @response `200` `object`\n */\n productGetById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/product/${id}`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductFindAllByTenantId\n * @summary Get all the products for the specified tenant\n * @request GET:/api/v1/product\n * @response `200` `object`\n */\n productFindAllByTenantId = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/product`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags TenantAdmin\n * @name TenantAdminFindUsers\n * @request POST:/api/v1/admin/user\n * @response `200` `object`\n */\n tenantAdminFindUsers = <T,>(data: FindUsersRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/user`,\n method: \"POST\",\n body: data,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags TenantAdmin\n * @name TenantAdminGetById\n * @summary Get the User for the specified id\n * @request GET:/api/v1/admin/user/{id}\n * @response `200` `object`\n */\n tenantAdminGetById = <T,>(id: string, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/admin/user/${id}`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags TenantAdmin\n * @name TenantAdminRemoveAllRolesFromUser\n * @summary Block user by removing its role(s).\n * @request PUT:/api/v1/admin/user/{userId}/remove-all-roles\n * @response `200` `File` Success\n */\n tenantAdminRemoveAllRolesFromUser = (userId: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/user/${userId}/remove-all-roles`,\n method: \"PUT\",\n ...params,\n });\n /**\n * No description\n *\n * @tags TenantAdmin\n * @name TenantAdminAssignRoleToUser\n * @summary Add role to user.\n * @request PUT:/api/v1/admin/user/{userId}/assign-role\n * @response `200` `File` Success\n */\n tenantAdminAssignRoleToUser = (userId: string, data: TenantUserAssignRoleRequest, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/admin/user/${userId}/assign-role`,\n method: \"PUT\",\n body: data,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags VehicleDetails\n * @name VehicleDetailsGet\n * @summary Get vehicle details\n * @request GET:/api/v1/vehicle/details\n * @response `200` `object`\n */\n vehicleDetailsGet = <T,>(\n query: {\n /** Vehicle registration number */\n regNumber: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/api/v1/vehicle/details`,\n method: \"GET\",\n query: query,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Webhook\n * @name WebhookProcessedPaymentWebhook\n * @summary Process payment events\n * @request POST:/api/v1/webhook/payment\n * @response `200` `object`\n */\n webhookProcessedPaymentWebhook = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/webhook/payment`,\n method: \"POST\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerGetWorkersStatuses\n * @summary Get statuses (enabled/disabled) of all the workers.\n * @request GET:/api/v1/dax-admin/worker\n * @response `200` `object`\n */\n workerGetWorkersStatuses = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/api/v1/dax-admin/worker`,\n method: \"GET\",\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerManageListingLifeCycleWorkerStatus\n * @request PUT:/api/v1/dax-admin/worker/listing-life-cycle\n * @response `200` `File`\n */\n workerManageListingLifeCycleWorkerStatus = (\n query: {\n status: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/worker/listing-life-cycle`,\n method: \"PUT\",\n query: query,\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerManageProcessingPaymentsWorkerStatus\n * @request PUT:/api/v1/dax-admin/worker/processing-payments\n * @response `200` `File`\n */\n workerManageProcessingPaymentsWorkerStatus = (\n query: {\n status: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/worker/processing-payments`,\n method: \"PUT\",\n query: query,\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerManageEmailWorkerStatus\n * @request PUT:/api/v1/dax-admin/worker/email\n * @response `200` `File`\n */\n workerManageEmailWorkerStatus = (\n query: {\n status: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/worker/email`,\n method: \"PUT\",\n query: query,\n ...params,\n });\n /**\n * No description\n *\n * @tags Worker\n * @name WorkerTesting\n * @request PUT:/api/v1/dax-admin/worker/testing\n * @response `200` `File`\n */\n workerTesting = (params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/api/v1/dax-admin/worker/testing`,\n method: \"PUT\",\n ...params,\n });\n}\n", "/* eslint-disable */\n/* tslint:disable */\n/*\n * ---------------------------------------------------------------\n * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##\n * ## ##\n * ## AUTHOR: acacode ##\n * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##\n * ---------------------------------------------------------------\n */\n\nimport {\n CurrencyCreateRequest,\n CurrencyResponse,\n CurrencyUpdateRequest,\n ProblemDetails,\n ProductCreateRequest,\n TenantCreateRequest,\n} from \"./data-contracts\";\nimport { ContentType, HttpClient, RequestParams } from \"./http-client\";\n\nexport class ClosedApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyUpdate\n * @summary Update an existing active currency\n * @request PUT:/closed-api/v1/currency/{code}\n * @secure\n * @response `200` `CurrencyResponse` Success\n */\n currencyUpdate = (code: string, data: CurrencyUpdateRequest, params: RequestParams = {}) =>\n this.request<CurrencyResponse, any>({\n path: `/closed-api/v1/currency/${code}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyDelete\n * @summary Delete an existing active currency\n * @request DELETE:/closed-api/v1/currency/{code}\n * @secure\n * @response `200` `File` Success\n */\n currencyDelete = (code: string, params: RequestParams = {}) =>\n this.request<File, any>({\n path: `/closed-api/v1/currency/${code}`,\n method: \"DELETE\",\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Currency\n * @name CurrencyAdd\n * @summary Create a new currency\n * @request POST:/closed-api/v1/currency\n * @secure\n * @response `200` `object`\n */\n currencyAdd = <T,>(data: CurrencyCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/currency`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductUpdate\n * @summary Update an existing active product\n * @request PUT:/closed-api/v1/product/{id}\n * @secure\n * @response `204` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n productUpdate = (id: string, data: ProductCreateRequest, params: RequestParams = {}) =>\n this.request<void, ProblemDetails>({\n path: `/closed-api/v1/product/${id}`,\n method: \"PUT\",\n body: data,\n secure: true,\n type: ContentType.Json,\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductDelete\n * @summary Delete an existing active product\n * @request DELETE:/closed-api/v1/product/{id}\n * @secure\n * @response `200` `void` Success\n * @response `400` `ProblemDetails`\n * @response `404` `ProblemDetails`\n * @response `default` `ProblemDetails`\n */\n productDelete = (\n id: string,\n query: {\n /**\n * unique id of the product\n * @format guid\n */\n productId: string;\n },\n params: RequestParams = {},\n ) =>\n this.request<void, ProblemDetails>({\n path: `/closed-api/v1/product/${id}`,\n method: \"DELETE\",\n query: query,\n secure: true,\n ...params,\n });\n /**\n * No description\n *\n * @tags Product\n * @name ProductCreate\n * @summary Create a new product\n * @request POST:/closed-api/v1/product\n * @secure\n * @response `200` `object`\n */\n productCreate = <T,>(data: ProductCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/product`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Reports\n * @name ReportsGetActiveUserSubscriptions\n * @summary Get a list of active users and their newsletter subscription status\n * @request GET:/closed-api/v1/reports/active-user-subscriptions\n * @secure\n * @response `200` `object`\n */\n reportsGetActiveUserSubscriptions = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/reports/active-user-subscriptions`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Reports\n * @name ReportsGetBidsForNotSoldListings\n * @summary Get a bids for listings in the EndedNotSold state in the last 30 days\n * @request GET:/closed-api/v1/reports/bids-for-not-sold-listings\n * @secure\n * @response `200` `object`\n */\n reportsGetBidsForNotSoldListings = <T,>(params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/reports/bids-for-not-sold-listings`,\n method: \"GET\",\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Tenant\n * @name TenantFindAll\n * @summary Get list of all tenants\n * @request GET:/closed-api/v1/tenant\n * @secure\n * @response `200` `object`\n */\n tenantFindAll = <T,>(\n query: {\n /** whether to include inactive tenants */\n includeInactive: boolean;\n },\n params: RequestParams = {},\n ) =>\n this.request<T, any>({\n path: `/closed-api/v1/tenant`,\n method: \"GET\",\n query: query,\n secure: true,\n format: \"json\",\n ...params,\n });\n /**\n * No description\n *\n * @tags Tenant\n * @name TenantCreate\n * @summary Create a new tenant\n * @request POST:/closed-api/v1/tenant\n * @secure\n * @response `200` `object`\n */\n tenantCreate = <T,>(data: TenantCreateRequest, params: RequestParams = {}) =>\n this.request<T, any>({\n path: `/closed-api/v1/tenant`,\n method: \"POST\",\n body: data,\n secure: true,\n type: ContentType.Json,\n format: \"json\",\n ...params,\n });\n}\n", "import { Api } from \"./generated/dax-api/Api\";\nimport { ClosedApi } from \"./generated/dax-api/ClosedApi\";\nimport { ApiConfig, RequestParams } from \"./generated/dax-api/http-client\";\nimport { ListingDetail } from \"./models/ListingDetail\";\nimport { ListingStatusCountFindAllResponse } from \"./models/ListingStatusCountFindAllResponse\";\n\nexport const apiConfig: ApiConfig = {\n baseUrl: '/dax-api'\n}\n\nexport const daxApi = new Api(apiConfig);\nexport const daxClosedApi = new ClosedApi(apiConfig);\n\nexport const listingDetailFindAll = (listingType: (string|undefined), listingStatus: (string|undefined), params: RequestParams = {}): Promise<ListingDetail[]> => {\n return daxApi.listingDetailFindAllByTenantId<ListingDetail[]>({\n ...(listingType ? {listingType} : {}), \n ...(listingStatus ? {listingStatus} : {})\n }, params);\n}\n\nexport const listingDetailById = (id: string, params: RequestParams = {}): Promise<ListingDetail> => {\n return daxApi.listingDetailGetById<ListingDetail>(id, params);\n}\n\nexport const listingStatusCountFindAll = (listingType: (string|undefined), listingStatus: (string|undefined), params: RequestParams = {}): Promise<ListingStatusCountFindAllResponse[]> => {\n return daxApi.listingStatusCountFindAllByTenantId<ListingStatusCountFindAllResponse[]>({\n ...(listingType ? {listingType} : {}), \n ...(listingStatus ? {listingStatus} : {})\n }, params);\n}\n"],
|
|
5
|
+
"mappings": "AA+CO,IAAMA,EAAN,cAAgD,KAAM,CAC3D,YACEC,EACOC,EACP,CACA,MAAMD,CAAO,EAFN,kBAAAC,CAGT,CACF,EAyBO,IAAMC,EAAN,KAA6C,CAC3C,QAAkB,0BACjB,aAAwC,KACxC,eACA,iBAAmB,IAAI,IACvB,YAAc,IAAIC,IAA0C,MAAM,GAAGA,CAAW,EAEhF,cAA+B,CAC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CAAC,YAAAA,CAAW,EAAI,CAAC,EACnC,GAAIC,EAAgB,CAAC,cAAAA,CAAa,EAAI,CAAC,CAC3C,EAAGC,CAAM",
|
|
6
6
|
"names": ["HttpClientHttpResponseError", "message", "httpResponse", "HttpClient", "fetchParams", "apiConfig", "data", "key", "value", "query", "v", "rawQuery", "queryString", "input", "formData", "property", "params1", "params2", "cancelToken", "abortController", "body", "secure", "path", "type", "format", "baseUrl", "params", "secureParams", "requestParams", "payloadFormatter", "responseFormat", "signal", "response", "r", "e", "HttpClientHttpResponseError", "Api", "HttpClient", "params", "imageId", "itemId", "query", "data", "id", "listingId", "code", "offerId", "tenantId", "userId", "ClosedApi", "HttpClient", "code", "data", "params", "id", "query", "apiConfig", "daxApi", "Api", "daxClosedApi", "ClosedApi", "listingDetailFindAll", "listingType", "listingStatus", "params", "listingDetailById", "id", "listingStatusCountFindAll"]
|
|
7
7
|
}
|
|
@@ -800,6 +800,17 @@ export declare class Api<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
800
800
|
* @response `200` `File`
|
|
801
801
|
*/
|
|
802
802
|
listingMarkFixedPriceAsNotSold: (id: string, params?: RequestParams) => Promise<File>;
|
|
803
|
+
/**
|
|
804
|
+
* No description
|
|
805
|
+
*
|
|
806
|
+
* @tags Listing
|
|
807
|
+
* @name ListingRequestPublish
|
|
808
|
+
* @summary Request publish a draft for a listing to live.
|
|
809
|
+
* @request PUT:/api/v1/admin/listing/{id}/request-publish
|
|
810
|
+
* @secure
|
|
811
|
+
* @response `200` `File` Success
|
|
812
|
+
*/
|
|
813
|
+
listingRequestPublish: (id: string, params?: RequestParams) => Promise<File>;
|
|
803
814
|
/**
|
|
804
815
|
* No description
|
|
805
816
|
*
|
package/package.json
CHANGED
|
@@ -1401,6 +1401,23 @@ export class Api<SecurityDataType = unknown> extends HttpClient<SecurityDataType
|
|
|
1401
1401
|
secure: true,
|
|
1402
1402
|
...params,
|
|
1403
1403
|
});
|
|
1404
|
+
/**
|
|
1405
|
+
* No description
|
|
1406
|
+
*
|
|
1407
|
+
* @tags Listing
|
|
1408
|
+
* @name ListingRequestPublish
|
|
1409
|
+
* @summary Request publish a draft for a listing to live.
|
|
1410
|
+
* @request PUT:/api/v1/admin/listing/{id}/request-publish
|
|
1411
|
+
* @secure
|
|
1412
|
+
* @response `200` `File` Success
|
|
1413
|
+
*/
|
|
1414
|
+
listingRequestPublish = (id: string, params: RequestParams = {}) =>
|
|
1415
|
+
this.request<File, any>({
|
|
1416
|
+
path: `/api/v1/admin/listing/${id}/request-publish`,
|
|
1417
|
+
method: "PUT",
|
|
1418
|
+
secure: true,
|
|
1419
|
+
...params,
|
|
1420
|
+
});
|
|
1404
1421
|
/**
|
|
1405
1422
|
* No description
|
|
1406
1423
|
*
|