rehive 4.1.4 → 4.2.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/dist/admin.d.mts +43 -106
- package/dist/admin.d.ts +43 -106
- package/dist/admin.js +1 -1
- package/dist/admin.mjs +1 -1
- package/dist/auth.d.mts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/auth.js +1 -1
- package/dist/auth.mjs +1 -1
- package/dist/{chunk-AVPKHYGS.js → chunk-7USVOK77.js} +5 -5
- package/dist/{chunk-X6YDNXYV.js → chunk-ERD2XKSM.js} +1 -1
- package/dist/chunk-G3M5QMRX.js +1 -0
- package/dist/chunk-HSPTEN45.mjs +1 -0
- package/dist/chunk-HWXE5WBF.js +7 -0
- package/dist/chunk-MUN3POSM.mjs +7 -0
- package/dist/{chunk-4WSHB6U6.mjs → chunk-PCR54D6A.mjs} +1 -1
- package/dist/chunk-ZUZHOLAX.mjs +7 -0
- package/dist/{create-api-client-ebyTfhcm.d.ts → create-api-client-ADSlg8HX.d.ts} +1 -1
- package/dist/{create-api-client-C-LEZku2.d.mts → create-api-client-B4Q01gHp.d.mts} +1 -1
- package/dist/{create-auth-DsnHpEf0.d.mts → create-auth-CT_IFt3T.d.mts} +53 -47
- package/dist/{create-auth-DsnHpEf0.d.ts → create-auth-CT_IFt3T.d.ts} +53 -47
- package/dist/extensions/alchemy.d.mts +3 -3
- package/dist/extensions/alchemy.d.ts +3 -3
- package/dist/extensions/alchemy.js +5 -5
- package/dist/extensions/alchemy.mjs +5 -5
- package/dist/extensions/app.d.mts +3 -3
- package/dist/extensions/app.d.ts +3 -3
- package/dist/extensions/app.js +5 -5
- package/dist/extensions/app.mjs +5 -5
- package/dist/extensions/billing.d.mts +3 -3
- package/dist/extensions/billing.d.ts +3 -3
- package/dist/extensions/billing.js +5 -5
- package/dist/extensions/billing.mjs +5 -5
- package/dist/extensions/bridge.d.mts +16 -190
- package/dist/extensions/bridge.d.ts +16 -190
- package/dist/extensions/bridge.js +5 -5
- package/dist/extensions/bridge.mjs +5 -5
- package/dist/extensions/builder.d.mts +3 -3
- package/dist/extensions/builder.d.ts +3 -3
- package/dist/extensions/builder.js +5 -5
- package/dist/extensions/builder.mjs +5 -5
- package/dist/extensions/business.d.mts +47 -82
- package/dist/extensions/business.d.ts +47 -82
- package/dist/extensions/business.js +5 -5
- package/dist/extensions/business.mjs +5 -5
- package/dist/extensions/conversion.d.mts +3 -3
- package/dist/extensions/conversion.d.ts +3 -3
- package/dist/extensions/conversion.js +5 -5
- package/dist/extensions/conversion.mjs +5 -5
- package/dist/extensions/mass-send.d.mts +3 -3
- package/dist/extensions/mass-send.d.ts +3 -3
- package/dist/extensions/mass-send.js +5 -5
- package/dist/extensions/mass-send.mjs +5 -5
- package/dist/extensions/notifications.d.mts +3 -3
- package/dist/extensions/notifications.d.ts +3 -3
- package/dist/extensions/notifications.js +5 -5
- package/dist/extensions/notifications.mjs +5 -5
- package/dist/extensions/payment-requests.d.mts +3 -7
- package/dist/extensions/payment-requests.d.ts +3 -7
- package/dist/extensions/payment-requests.js +5 -5
- package/dist/extensions/payment-requests.mjs +5 -5
- package/dist/extensions/products.d.mts +3 -3
- package/dist/extensions/products.d.ts +3 -3
- package/dist/extensions/products.js +5 -5
- package/dist/extensions/products.mjs +5 -5
- package/dist/extensions/rain.d.mts +3 -3
- package/dist/extensions/rain.d.ts +3 -3
- package/dist/extensions/rain.js +5 -5
- package/dist/extensions/rain.mjs +5 -5
- package/dist/extensions/rewards.d.mts +3 -3
- package/dist/extensions/rewards.d.ts +3 -3
- package/dist/extensions/rewards.js +5 -5
- package/dist/extensions/rewards.mjs +5 -5
- package/dist/extensions/stellar-testnet.d.mts +3 -3
- package/dist/extensions/stellar-testnet.d.ts +3 -3
- package/dist/extensions/stellar-testnet.js +5 -5
- package/dist/extensions/stellar-testnet.mjs +5 -5
- package/dist/extensions/stellar.d.mts +3 -3
- package/dist/extensions/stellar.d.ts +3 -3
- package/dist/extensions/stellar.js +5 -5
- package/dist/extensions/stellar.mjs +5 -5
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +11 -3
- package/dist/react.d.ts +11 -3
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +6 -16
- package/dist/user.d.ts +6 -16
- package/dist/user.js +1 -1
- package/dist/user.mjs +1 -1
- package/package.json +1 -1
- package/src/auth/create-auth.ts +773 -169
- package/src/auth/index.ts +25 -2
- package/src/auth/types/index.ts +48 -0
- package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/app/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/app/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/billing/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/bridge/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/bridge/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/bridge/openapi-ts/index.ts +2 -2
- package/src/extensions/bridge/openapi-ts/sdk.gen.ts +1 -43
- package/src/extensions/bridge/openapi-ts/types.gen.ts +11 -201
- package/src/extensions/builder/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/business/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/business/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/business/openapi-ts/types.gen.ts +44 -79
- package/src/extensions/conversion/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/notifications/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/payment-requests/openapi-ts/types.gen.ts +0 -4
- package/src/extensions/products/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/products/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/rain/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/rewards/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/stellar/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/admin/openapi-ts/client/client.gen.ts +3 -5
- package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/platform/admin/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/admin/openapi-ts/sdk.gen.ts +10 -10
- package/src/platform/admin/openapi-ts/types.gen.ts +40 -103
- package/src/platform/user/openapi-ts/client/client.gen.ts +3 -5
- package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/platform/user/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/user/openapi-ts/index.ts +2 -2
- package/src/platform/user/openapi-ts/sdk.gen.ts +3 -29
- package/src/platform/user/openapi-ts/types.gen.ts +7 -54
- package/dist/chunk-KUT5NSX7.mjs +0 -7
- package/dist/chunk-KZWBOQHZ.mjs +0 -7
- package/dist/chunk-PE6PG7ZE.js +0 -1
- package/dist/chunk-UYYU5OJ4.js +0 -7
- package/dist/chunk-Z7BUNKND.mjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{a as N,c as H}from"../chunk-S5UXBHRU.mjs";import{a as ae}from"../chunk-S4QKN5WW.mjs";var j={};ae(j,{activateCreate:()=>
|
|
1
|
+
import{a as N,c as H}from"../chunk-S5UXBHRU.mjs";import{a as ae}from"../chunk-S4QKN5WW.mjs";var j={};ae(j,{activateCreate:()=>Oe,adminCategoriesCreate:()=>we,adminCategoriesDestroy:()=>Re,adminCategoriesList:()=>ge,adminCategoriesPartialUpdate:()=>Pe,adminCategoriesRetrieve:()=>Te,adminCategoriesUpdate:()=>fe,adminCompanyPartialUpdate:()=>Ae,adminCompanyRetrieve:()=>Ee,adminCompanyUpdate:()=>De,adminCurrenciesList:()=>Se,adminCurrenciesRetrieve:()=>xe,adminIntegrationsCreate:()=>be,adminIntegrationsDestroy:()=>Ue,adminIntegrationsList:()=>Ce,adminIntegrationsPartialUpdate:()=>Me,adminIntegrationsRetrieve:()=>ke,adminIntegrationsUpdate:()=>ve,adminIntegrationsWebhooksCreate:()=>ze,adminIntegrationsWebhooksDestroy:()=>Ve,adminIntegrationsWebhooksList:()=>Ie,adminIntegrationsWebhooksPartialUpdate:()=>Le,adminIntegrationsWebhooksRetrieve:()=>_e,adminIntegrationsWebhooksUpdate:()=>Ke,adminOrdersCreate:()=>qe,adminOrdersDestroy:()=>We,adminOrdersItemsCreate:()=>He,adminOrdersItemsDestroy:()=>Ye,adminOrdersItemsList:()=>Ne,adminOrdersItemsPartialUpdate:()=>er,adminOrdersItemsRetrieve:()=>Ze,adminOrdersItemsUpdate:()=>rr,adminOrdersList:()=>je,adminOrdersPartialUpdate:()=>$e,adminOrdersPaymentsCreate:()=>Je,adminOrdersPaymentsList:()=>Fe,adminOrdersPaymentsPartialUpdate:()=>sr,adminOrdersPaymentsRetrieve:()=>tr,adminOrdersPaymentsUpdate:()=>nr,adminOrdersRefundsCreate:()=>Xe,adminOrdersRefundsList:()=>Ge,adminOrdersRefundsPartialUpdate:()=>or,adminOrdersRefundsRetrieve:()=>ar,adminOrdersRefundsUpdate:()=>ir,adminOrdersRetrieve:()=>Be,adminOrdersUpdate:()=>Qe,adminProductsCategoriesCreate:()=>yr,adminProductsCategoriesDestroy:()=>fr,adminProductsCategoriesList:()=>hr,adminProductsCategoriesRetrieve:()=>Er,adminProductsCreate:()=>lr,adminProductsDestroy:()=>pr,adminProductsImagesCreate:()=>Dr,adminProductsImagesDestroy:()=>Sr,adminProductsImagesList:()=>Ar,adminProductsImagesPartialUpdate:()=>Cr,adminProductsImagesRetrieve:()=>xr,adminProductsImagesUpdate:()=>br,adminProductsList:()=>dr,adminProductsOptionsCreate:()=>gr,adminProductsOptionsDestroy:()=>Ur,adminProductsOptionsList:()=>Or,adminProductsOptionsPartialUpdate:()=>Mr,adminProductsOptionsRetrieve:()=>kr,adminProductsOptionsUpdate:()=>vr,adminProductsPartialUpdate:()=>ur,adminProductsPricesCreate:()=>Rr,adminProductsPricesDestroy:()=>Ir,adminProductsPricesList:()=>wr,adminProductsPricesPartialUpdate:()=>Vr,adminProductsPricesRetrieve:()=>zr,adminProductsPricesUpdate:()=>_r,adminProductsRetrieve:()=>cr,adminProductsUpdate:()=>mr,adminProductsVariantsCreate:()=>Pr,adminProductsVariantsDestroy:()=>Lr,adminProductsVariantsList:()=>Tr,adminProductsVariantsPartialUpdate:()=>jr,adminProductsVariantsPricesCreate:()=>Br,adminProductsVariantsPricesDestroy:()=>$r,adminProductsVariantsPricesList:()=>Wr,adminProductsVariantsPricesPartialUpdate:()=>Nr,adminProductsVariantsPricesRetrieve:()=>Qr,adminProductsVariantsPricesUpdate:()=>Hr,adminProductsVariantsRetrieve:()=>Kr,adminProductsVariantsUpdate:()=>qr,adminRedemptionsCreate:()=>Jr,adminRedemptionsList:()=>Fr,adminRedemptionsRetrieve:()=>Gr,adminSellersList:()=>Xr,adminSellersPartialUpdate:()=>Zr,adminSellersRetrieve:()=>Yr,adminSellersUpdate:()=>et,adminVoucherImportsCreate:()=>tt,adminVoucherImportsList:()=>rt,adminVoucherImportsRetrieve:()=>st,adminVouchersActionsList:()=>pt,adminVouchersActionsRetrieve:()=>ct,adminVouchersCreate:()=>at,adminVouchersDestroy:()=>ot,adminVouchersImportCreate:()=>ut,adminVouchersList:()=>nt,adminVouchersPartialUpdate:()=>dt,adminVouchersQueryCreate:()=>mt,adminVouchersRetrieve:()=>it,adminVouchersUpdate:()=>lt,deactivateCreate:()=>ht,managerCategoriesList:()=>yt,managerCategoriesRetrieve:()=>Ot,managerCompanyRetrieve:()=>gt,managerCurrenciesList:()=>wt,managerCurrenciesRetrieve:()=>Rt,managerSellersCreate:()=>Pt,managerSellersIntegrationsCreate:()=>St,managerSellersIntegrationsDestroy:()=>xt,managerSellersIntegrationsList:()=>Dt,managerSellersIntegrationsPartialUpdate:()=>bt,managerSellersIntegrationsRetrieve:()=>Ct,managerSellersIntegrationsUpdate:()=>Ut,managerSellersIntegrationsWebhooksCreate:()=>Mt,managerSellersIntegrationsWebhooksDestroy:()=>vt,managerSellersIntegrationsWebhooksList:()=>kt,managerSellersIntegrationsWebhooksPartialUpdate:()=>zt,managerSellersIntegrationsWebhooksRetrieve:()=>It,managerSellersIntegrationsWebhooksUpdate:()=>Vt,managerSellersList:()=>Tt,managerSellersOrdersItemsList:()=>qt,managerSellersOrdersItemsPartialUpdate:()=>Nt,managerSellersOrdersItemsRetrieve:()=>Qt,managerSellersOrdersItemsUpdate:()=>Ht,managerSellersOrdersList:()=>_t,managerSellersOrdersPartialUpdate:()=>Kt,managerSellersOrdersPaymentsList:()=>Wt,managerSellersOrdersPaymentsPartialUpdate:()=>Jt,managerSellersOrdersPaymentsRetrieve:()=>Ft,managerSellersOrdersPaymentsUpdate:()=>Gt,managerSellersOrdersRefundsCreate:()=>$t,managerSellersOrdersRefundsList:()=>Bt,managerSellersOrdersRefundsPartialUpdate:()=>Yt,managerSellersOrdersRefundsRetrieve:()=>Xt,managerSellersOrdersRefundsUpdate:()=>Zt,managerSellersOrdersRetrieve:()=>Lt,managerSellersOrdersUpdate:()=>jt,managerSellersPartialUpdate:()=>Et,managerSellersProductsCategoriesCreate:()=>is,managerSellersProductsCategoriesDestroy:()=>hs,managerSellersProductsCategoriesList:()=>os,managerSellersProductsCategoriesRetrieve:()=>ys,managerSellersProductsCreate:()=>rs,managerSellersProductsDestroy:()=>ts,managerSellersProductsImagesCreate:()=>gs,managerSellersProductsImagesDestroy:()=>ws,managerSellersProductsImagesList:()=>Os,managerSellersProductsImagesPartialUpdate:()=>Ts,managerSellersProductsImagesRetrieve:()=>Rs,managerSellersProductsImagesUpdate:()=>Ps,managerSellersProductsList:()=>es,managerSellersProductsOptionsCreate:()=>ls,managerSellersProductsOptionsDestroy:()=>fs,managerSellersProductsOptionsList:()=>ds,managerSellersProductsOptionsPartialUpdate:()=>As,managerSellersProductsOptionsRetrieve:()=>Es,managerSellersProductsOptionsUpdate:()=>Ds,managerSellersProductsPartialUpdate:()=>ns,managerSellersProductsPricesCreate:()=>cs,managerSellersProductsPricesDestroy:()=>Ss,managerSellersProductsPricesList:()=>ps,managerSellersProductsPricesPartialUpdate:()=>Cs,managerSellersProductsPricesRetrieve:()=>xs,managerSellersProductsPricesUpdate:()=>bs,managerSellersProductsRetrieve:()=>ss,managerSellersProductsUpdate:()=>as,managerSellersProductsVariantsCreate:()=>ms,managerSellersProductsVariantsDestroy:()=>Us,managerSellersProductsVariantsList:()=>us,managerSellersProductsVariantsPartialUpdate:()=>Ms,managerSellersProductsVariantsPricesCreate:()=>zs,managerSellersProductsVariantsPricesDestroy:()=>Vs,managerSellersProductsVariantsPricesList:()=>Is,managerSellersProductsVariantsPricesPartialUpdate:()=>Ls,managerSellersProductsVariantsPricesRetrieve:()=>_s,managerSellersProductsVariantsPricesUpdate:()=>Ks,managerSellersProductsVariantsRetrieve:()=>ks,managerSellersProductsVariantsUpdate:()=>vs,managerSellersRedemptionsCreate:()=>qs,managerSellersRedemptionsList:()=>js,managerSellersRedemptionsRetrieve:()=>Ws,managerSellersRetrieve:()=>ft,managerSellersUpdate:()=>At,managerSellersVoucherImportCreate:()=>Ns,managerSellersVoucherImportsCreate:()=>$s,managerSellersVoucherImportsList:()=>Bs,managerSellersVoucherImportsRetrieve:()=>Qs,managerSellersVouchersActionsList:()=>Zs,managerSellersVouchersActionsRetrieve:()=>en,managerSellersVouchersCreate:()=>Fs,managerSellersVouchersDestroy:()=>Js,managerSellersVouchersList:()=>Hs,managerSellersVouchersPartialUpdate:()=>Xs,managerSellersVouchersQueryCreate:()=>rn,managerSellersVouchersRetrieve:()=>Gs,managerSellersVouchersUpdate:()=>Ys,userCategoriesList:()=>tn,userCategoriesRetrieve:()=>sn,userCompanyRetrieve:()=>nn,userOrdersCreate:()=>on,userOrdersDestroy:()=>dn,userOrdersItemsCreate:()=>mn,userOrdersItemsDestroy:()=>gn,userOrdersItemsList:()=>un,userOrdersItemsPartialUpdate:()=>Rn,userOrdersItemsRetrieve:()=>wn,userOrdersItemsUpdate:()=>Tn,userOrdersList:()=>an,userOrdersPartialUpdate:()=>pn,userOrdersPaymentsCreate:()=>yn,userOrdersPaymentsList:()=>hn,userOrdersPaymentsRetrieve:()=>Pn,userOrdersRefundsList:()=>On,userOrdersRefundsRetrieve:()=>fn,userOrdersRetrieve:()=>ln,userOrdersUpdate:()=>cn,userProductsImagesList:()=>xn,userProductsImagesRetrieve:()=>Cn,userProductsList:()=>En,userProductsPricesList:()=>Dn,userProductsPricesRetrieve:()=>bn,userProductsRetrieve:()=>An,userProductsVariantsList:()=>Sn,userProductsVariantsRetrieve:()=>Un,userRedemptionsCreate:()=>Mn,userRedemptionsList:()=>kn,userRedemptionsRetrieve:()=>vn,userSellersList:()=>In,userSellersRetrieve:()=>zn,userVouchersActionsList:()=>Ln,userVouchersActionsRetrieve:()=>Kn,userVouchersList:()=>Vn,userVouchersQueryCreate:()=>jn,userVouchersRetrieve:()=>_n,webhookCreate:()=>qn});var V={bodySerializer:e=>JSON.stringify(e,(t,s)=>typeof s=="bigint"?s.toString():s)};var oe={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},$n=Object.entries(oe);var F=({onRequest:e,onSseError:t,onSseEvent:s,responseTransformer:o,responseValidator:a,sseDefaultRetryDelay:p,sseMaxRetryAttempts:d,sseMaxRetryDelay:i,sseSleepFn:l,url:u,...n})=>{let y,D=l??(c=>new Promise(g=>setTimeout(g,c)));return{stream:async function*(){let c=p??3e3,g=0,P=n.signal??new AbortController().signal;for(;!P.aborted;){g++;let S=n.headers instanceof Headers?n.headers:new Headers(n.headers);y!==void 0&&S.set("Last-Event-ID",y);try{let f={redirect:"follow",...n,body:n.serializedBody,headers:S,signal:P},T=new Request(u,f);e&&(T=await e(u,f));let m=await(n.fetch??globalThis.fetch)(T);if(!m.ok)throw new Error(`SSE failed: ${m.status} ${m.statusText}`);if(!m.body)throw new Error("No body in SSE response");let O=m.body.pipeThrough(new TextDecoderStream).getReader(),x="",q=()=>{try{O.cancel()}catch{}};P.addEventListener("abort",q);try{for(;;){let{done:re,value:te}=await O.read();if(re)break;x+=te,x=x.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
|
-
`);let W=
|
|
3
|
+
`);let W=x.split(`
|
|
4
4
|
|
|
5
|
-
`);
|
|
6
|
-
`),M=[],B;for(let
|
|
7
|
-
`);try{A=JSON.parse(T),$=!0}catch{A=T}}$&&(a&&await a(A),o&&(A=await o(A))),s?.({data:A,event:B,id:n,retry:P}),M.length&&(yield A)}}}finally{g.removeEventListener("abort",q),O.releaseLock()}break}catch(f){if(t?.(f),d!==void 0&&u>=d)break;let E=Math.min(P*2**(u-1),i??3e4);await w(E)}}}()}};var ie=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},de=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},le=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},v=({allowReserved:e,explode:t,name:s,style:o,value:a})=>{if(!t){let i=(e?a:a.map(l=>encodeURIComponent(l))).join(de(o));switch(o){case"label":return`.${i}`;case"matrix":return`;${s}=${i}`;case"simple":return i;default:return`${s}=${i}`}}let p=ie(o),d=a.map(i=>o==="label"||o==="simple"?e?i:encodeURIComponent(i):S({allowReserved:e,name:s,value:i})).join(p);return o==="label"||o==="matrix"?p+d:d},S=({allowReserved:e,name:t,value:s})=>{if(s==null)return"";if(typeof s=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?s:encodeURIComponent(s)}`},I=({allowReserved:e,explode:t,name:s,style:o,value:a,valueOnly:p})=>{if(a instanceof Date)return p?a.toISOString():`${s}=${a.toISOString()}`;if(o!=="deepObject"&&!t){let l=[];Object.entries(a).forEach(([c,n])=>{l=[...l,c,e?n:encodeURIComponent(n)]});let y=l.join(",");switch(o){case"form":return`${s}=${y}`;case"label":return`.${y}`;case"matrix":return`;${s}=${y}`;default:return y}}let d=le(o),i=Object.entries(a).map(([l,y])=>S({allowReserved:e,name:o==="deepObject"?`${s}[${l}]`:l,value:y})).join(d);return o==="label"||o==="matrix"?d+i:i};var pe=/\{[^{}]+\}/g,ue=({path:e,url:t})=>{let s=t,o=t.match(pe);if(o)for(let a of o){let p=!1,d=a.substring(1,a.length-1),i="simple";d.endsWith("*")&&(p=!0,d=d.substring(0,d.length-1)),d.startsWith(".")?(d=d.substring(1),i="label"):d.startsWith(";")&&(d=d.substring(1),i="matrix");let l=e[d];if(l==null)continue;if(Array.isArray(l)){s=s.replace(a,v({explode:p,name:d,style:i,value:l}));continue}if(typeof l=="object"){s=s.replace(a,I({explode:p,name:d,style:i,value:l,valueOnly:!0}));continue}if(i==="matrix"){s=s.replace(a,`;${S({name:d,value:l})}`);continue}let y=encodeURIComponent(i==="label"?`.${l}`:l);s=s.replace(a,y)}return s},J=({baseUrl:e,path:t,query:s,querySerializer:o,url:a})=>{let p=a.startsWith("/")?a:`/${a}`,d=(e??"")+p;t&&(d=ue({path:t,url:d}));let i=s?o(s):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(d+=`?${i}`),d};function _(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var G=async(e,t)=>{let s=typeof t=="function"?await t(e):t;if(s)return e.scheme==="bearer"?`Bearer ${s}`:e.scheme==="basic"?`Basic ${btoa(s)}`:s};var X=({parameters:e={},...t}={})=>o=>{let a=[];if(o&&typeof o=="object")for(let p in o){let d=o[p];if(d==null)continue;let i=e[p]||t;if(Array.isArray(d)){let l=v({allowReserved:i.allowReserved,explode:!0,name:p,style:"form",value:d,...i.array});l&&a.push(l)}else if(typeof d=="object"){let l=I({allowReserved:i.allowReserved,explode:!0,name:p,style:"deepObject",value:d,...i.object});l&&a.push(l)}else{let l=S({allowReserved:i.allowReserved,name:p,value:d});l&&a.push(l)}}return a.join("&")},Y=e=>{if(!e)return"stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(s=>t.startsWith(s)))return"blob";if(t.startsWith("text/"))return"text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):!1,Z=async({security:e,...t})=>{for(let s of e){if(ce(t,s.name))continue;let o=await G(s,t.auth);if(!o)continue;let a=s.name??"Authorization";switch(s.in){case"query":t.query||(t.query={}),t.query[a]=o;break;case"cookie":t.headers.append("Cookie",`${a}=${o}`);break;case"header":default:t.headers.set(a,o);break}}},L=e=>J({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),K=(e,t)=>{let s={...e,...t};return s.baseUrl?.endsWith("/")&&(s.baseUrl=s.baseUrl.substring(0,s.baseUrl.length-1)),s.headers=z(e.headers,t.headers),s},me=e=>{let t=[];return e.forEach((s,o)=>{t.push([o,s])}),t},z=(...e)=>{let t=new Headers;for(let s of e){if(!s)continue;let o=s instanceof Headers?me(s):Object.entries(s);for(let[a,p]of o)if(p===null)t.delete(a);else if(Array.isArray(p))for(let d of p)t.append(a,d);else p!==void 0&&t.set(a,typeof p=="object"?JSON.stringify(p):p)}return t},C=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(t){let s=this.getInterceptorIndex(t);this.fns[s]&&(this.fns[s]=null)}exists(t){let s=this.getInterceptorIndex(t);return!!this.fns[s]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,s){let o=this.getInterceptorIndex(t);return this.fns[o]?(this.fns[o]=s,t):!1}use(t){return this.fns.push(t),this.fns.length-1}},ee=()=>({error:new C,request:new C,response:new C}),he=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Oe={"Content-Type":"application/json"},b=(e={})=>({...V,headers:Oe,parseAs:"auto",querySerializer:he,...e});var U=(e={})=>{let t=K(b(),e),s=()=>({...t}),o=c=>(t=K(t,c),s()),a=ee(),p=async c=>{let n={...t,...c,fetch:c.fetch??t.fetch??globalThis.fetch,headers:z(t.headers,c.headers),serializedBody:void 0};n.security&&await Z({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let w=L(n);return{opts:n,url:w}},d=async c=>{let{opts:n,url:w}=await p(c),k={redirect:"follow",...n,body:_(n)},R=new Request(w,k);for(let m of a.request.fns)m&&(R=await m(R,n));let P=n.fetch,u;try{u=await P(R)}catch(m){let O=m;for(let h of a.error.fns)h&&(O=await h(m,void 0,R,n));if(O=O||{},n.throwOnError)throw O;return n.responseStyle==="data"?void 0:{error:O,request:R,response:void 0}}for(let m of a.response.fns)m&&(u=await m(u,R,n));let g={request:R,response:u};if(u.ok){let m=(n.parseAs==="auto"?Y(u.headers.get("Content-Type")):n.parseAs)??"json";if(u.status===204||u.headers.get("Content-Length")==="0"){let h;switch(m){case"arrayBuffer":case"blob":case"text":h=await u[m]();break;case"formData":h=new FormData;break;case"stream":h=u.body;break;case"json":default:h={};break}return n.responseStyle==="data"?h:{data:h,...g}}let O;switch(m){case"arrayBuffer":case"blob":case"formData":case"text":O=await u[m]();break;case"json":{let h=await u.text();O=h?JSON.parse(h):{};break}case"stream":return n.responseStyle==="data"?u.body:{data:u.body,...g}}return m==="json"&&(n.responseValidator&&await n.responseValidator(O),n.responseTransformer&&(O=await n.responseTransformer(O))),n.responseStyle==="data"?O:{data:O,...g}}let x=await u.text(),f;try{f=JSON.parse(x)}catch{}let E=f??x,D=E;for(let m of a.error.fns)m&&(D=await m(E,u,R,n));if(D=D||{},n.throwOnError)throw D;return n.responseStyle==="data"?void 0:{error:D,...g}},i=c=>n=>d({...n,method:c}),l=c=>async n=>{let{opts:w,url:k}=await p(n);return F({...w,body:w.body,headers:w.headers,method:c,onRequest:async(R,P)=>{let u=new Request(R,P);for(let g of a.request.fns)g&&(u=await g(u,w));return u},serializedBody:_(w),url:k})};return{buildUrl:c=>L({...t,...c}),connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:s,head:i("HEAD"),interceptors:a,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:d,setConfig:o,sse:{connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),head:l("HEAD"),options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),trace:l("TRACE")},trace:i("TRACE")}};var r=U(b({baseUrl:"https://product.services.rehive.com/api/"}));var ye=e=>(e.client??r).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ge=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/",...e}),we=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/{identifier}/",...e}),Te=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/{identifier}/",...e}),Pe=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),Ae=e=>(e?.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),De=e=>(e?.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Se=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/",...e}),xe=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e}),Ce=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/",...e}),be=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/",...e}),ke=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/",...e}),Me=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ie=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/webhooks/",...e}),ze=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/webhooks/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{integration_id}/webhooks{webhook_id}/",...e}),_e=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{integration_id}/webhooks{webhook_id}/",...e}),Le=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{integration_id}/webhooks{webhook_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{integration_id}/webhooks{webhook_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),je=e=>(e?.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/",...e}),qe=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/",...e}),Be=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/",...e}),$e=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qe=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/items/",...e}),He=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/items/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/payments/",...e}),Je=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/payments/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/refunds/",...e}),Xe=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/refunds/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/items/{item_id}/",...e}),Ze=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/items/{item_id}/",...e}),er=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),rr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),tr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/payments/{payment_id}/",...e}),sr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/payments/{payment_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),nr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/payments/{payment_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ar=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/refunds/{refund_id}/",...e}),or=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/refunds/{refund_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ir=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/refunds/{refund_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),dr=e=>(e?.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/",...e}),lr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/",...e,headers:{"Content-Type":"application/json",...e.headers}}),pr=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/",...e}),ur=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/",...e}),cr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),mr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),hr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/categories/",...e}),Or=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),yr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/options/",...e}),gr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/options/",...e,headers:{"Content-Type":"application/json",...e.headers}}),wr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/prices/",...e}),Rr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/prices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/variants/",...e}),Pr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/variants/",...e,headers:{"Content-Type":"application/json",...e.headers}}),fr=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/categories/{category_id}/",...e}),Er=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/categories/{category_id}/",...e}),Ar=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/",...e}),Dr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Sr=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/{image_id}/",...e}),xr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/{image_id}/",...e}),Cr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/{image_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),br=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/{image_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ur=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/options/{option_id}/",...e}),kr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/options/{option_id}/",...e}),Mr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/options/{option_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),vr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/options/{option_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ir=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/prices/{price_id}/",...e}),zr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/prices/{price_id}/",...e}),Vr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),_r=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Lr=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/",...e}),Kr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/",...e}),jr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Wr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/",...e}),Br=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),$r=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e}),Qr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e}),Nr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fr=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/redemptions/",...e}),Jr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/redemptions/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/redemptions/{action_id}/",...e}),Xr=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/sellers/",...e}),Yr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/sellers/{identifier}/",...e}),Zr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/sellers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/sellers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/voucher-imports/",...e}),tt=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/voucher-imports/",...e,headers:{"Content-Type":"application/json",...e.headers}}),st=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/voucher-imports/{identifier}/",...e}),nt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/",...e}),at=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ot=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/",...e}),it=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/",...e}),dt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),lt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),pt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/actions/",...e}),ut=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{voucher_id}/actions/{action_id}/",...e}),ct=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/import/",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/query/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=e=>(e.client??r).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ot=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/categories/",...e}),yt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/categories/{identifier}/",...e}),gt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/company/",...e}),wt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/currencies/",...e}),Rt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/currencies/{code}/",...e}),Tt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/",...e}),Pt=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ft=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/",...e}),Et=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),At=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Dt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/integrations/",...e}),St=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/integrations/",...e,headers:{"Content-Type":"application/json",...e.headers}}),xt=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/",...e}),Ct=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/",...e}),bt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ut=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),kt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/webhooks/",...e}),Mt=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/webhooks/",...e,headers:{"Content-Type":"application/json",...e.headers}}),vt=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{integration_id}/webhooks/{webhook_id}/",...e}),It=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{integration_id}/webhooks/{webhook_id}/",...e}),zt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{integration_id}/webhooks/{webhook_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{integration_id}/webhooks/{webhook_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),_t=e=>(e.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/",...e}),Lt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/",...e}),Kt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),jt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/items/",...e}),Wt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/payments/",...e}),Bt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/refunds/",...e}),$t=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/refunds/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/items/{item_id}/",...e}),Nt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ht=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ft=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/payments/{payment_id}/",...e}),Jt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/payments/{payment_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/payments/{payment_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Xt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/refunds/{refund_id}/",...e}),Yt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/refunds/{refund_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Zt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/refunds/{refund_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),es=e=>(e.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/",...e}),rs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ts=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/",...e}),ss=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/",...e}),ns=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),as=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),os=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/categories/",...e}),is=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ds=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/options/",...e}),ls=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/options/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ps=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/prices/",...e}),us=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/prices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),cs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/variants/",...e}),ms=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/variants/",...e,headers:{"Content-Type":"application/json",...e.headers}}),hs=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/categories/{category_id}/",...e}),Os=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/categories/{category_id}/",...e}),ys=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/",...e}),gs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ws=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/{image_id}/",...e}),Rs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/{image_id}/",...e}),Ts=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/{image_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ps=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/{image_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),fs=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/options/{option_id}/",...e}),Es=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/options/{option_id}/",...e}),As=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/options/{option_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ds=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/options/{option_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ss=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/prices/{price_id}/",...e}),xs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/prices/{price_id}/",...e}),Cs=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),bs=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Us=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/",...e}),ks=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/",...e}),Ms=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),vs=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Is=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/",...e}),zs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vs=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e}),_s=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e}),Ls=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ks=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),js=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/redemptions/",...e}),qs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/redemptions/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ws=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/redemptions/{action_id}/",...e}),Bs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/voucher-imports/",...e}),$s=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/voucher-imports/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/voucher-imports/{identifier}/",...e}),Ns=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/voucher/import/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/",...e}),Fs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Js=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{identifier}/",...e}),Gs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{identifier}/",...e}),Xs=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ys=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Zs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{voucher_id}/actions/",...e}),en=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{voucher_id}/actions/{action_id}/",...e}),rn=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/query/",...e,headers:{"Content-Type":"application/json",...e.headers}}),tn=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/categories/",...e}),sn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/categories/{identifier}/",...e}),nn=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/company/",...e}),an=e=>(e?.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/",...e}),on=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/",...e,headers:{"Content-Type":"application/json",...e.headers}}),dn=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/",...e}),ln=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/",...e}),pn=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),un=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),cn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/items/",...e}),mn=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/items/",...e,headers:{"Content-Type":"application/json",...e.headers}}),hn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/payments/",...e}),On=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/payments/",...e,headers:{"Content-Type":"application/json",...e.headers}}),yn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/refunds/",...e}),gn=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/items/{item_id}/",...e}),wn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/items/{item_id}/",...e}),Rn=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tn=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/payments/{payment_id}/",...e}),fn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/refunds/{refund_id}/",...e}),En=e=>(e?.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/",...e}),An=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{identifier}/",...e}),Dn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{identifier}/prices/",...e}),Sn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{identifier}/variants/",...e}),xn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{product_id}/images/",...e}),Cn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{product_id}/images/{image_id}/",...e}),bn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{product_id}/prices/{price_id}/",...e}),Un=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{product_id}/variants/{variant_id}/",...e}),kn=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/redemptions/",...e}),Mn=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/redemptions/",...e,headers:{"Content-Type":"application/json",...e.headers}}),vn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/redemptions/{action_id}/",...e}),In=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/sellers/",...e}),zn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/sellers/{seller_id}/",...e}),Vn=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/",...e}),_n=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/{identifier}/",...e}),Ln=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/{identifier}/actions/",...e}),Kn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/{voucher_id}/actions/{action_id}/",...e}),jn=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/query/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qn=e=>(e.client??r).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function Wn(e){let t=U(H(e,"https://product.services.rehive.com/api/"));return N(j,t)}export{Wn as createProductsApi};
|
|
5
|
+
`);x=W.pop()??"";for(let se of W){let ne=se.split(`
|
|
6
|
+
`),M=[],B;for(let R of ne)if(R.startsWith("data:"))M.push(R.replace(/^data:\s*/,""));else if(R.startsWith("event:"))B=R.replace(/^event:\s*/,"");else if(R.startsWith("id:"))y=R.replace(/^id:\s*/,"");else if(R.startsWith("retry:")){let Q=Number.parseInt(R.replace(/^retry:\s*/,""),10);Number.isNaN(Q)||(c=Q)}let E,$=!1;if(M.length){let R=M.join(`
|
|
7
|
+
`);try{E=JSON.parse(R),$=!0}catch{E=R}}$&&(a&&await a(E),o&&(E=await o(E))),s?.({data:E,event:B,id:y,retry:c}),M.length&&(yield E)}}}finally{P.removeEventListener("abort",q),O.releaseLock()}break}catch(f){if(t?.(f),d!==void 0&&g>=d)break;let T=Math.min(c*2**(g-1),i??3e4);await D(T)}}}()}};var ie=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},de=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},le=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},v=({allowReserved:e,explode:t,name:s,style:o,value:a})=>{if(!t){let i=(e?a:a.map(l=>encodeURIComponent(l))).join(de(o));switch(o){case"label":return`.${i}`;case"matrix":return`;${s}=${i}`;case"simple":return i;default:return`${s}=${i}`}}let p=ie(o),d=a.map(i=>o==="label"||o==="simple"?e?i:encodeURIComponent(i):A({allowReserved:e,name:s,value:i})).join(p);return o==="label"||o==="matrix"?p+d:d},A=({allowReserved:e,name:t,value:s})=>{if(s==null)return"";if(typeof s=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?s:encodeURIComponent(s)}`},I=({allowReserved:e,explode:t,name:s,style:o,value:a,valueOnly:p})=>{if(a instanceof Date)return p?a.toISOString():`${s}=${a.toISOString()}`;if(o!=="deepObject"&&!t){let l=[];Object.entries(a).forEach(([n,y])=>{l=[...l,n,e?y:encodeURIComponent(y)]});let u=l.join(",");switch(o){case"form":return`${s}=${u}`;case"label":return`.${u}`;case"matrix":return`;${s}=${u}`;default:return u}}let d=le(o),i=Object.entries(a).map(([l,u])=>A({allowReserved:e,name:o==="deepObject"?`${s}[${l}]`:l,value:u})).join(d);return o==="label"||o==="matrix"?d+i:i};var pe=/\{[^{}]+\}/g,ce=({path:e,url:t})=>{let s=t,o=t.match(pe);if(o)for(let a of o){let p=!1,d=a.substring(1,a.length-1),i="simple";d.endsWith("*")&&(p=!0,d=d.substring(0,d.length-1)),d.startsWith(".")?(d=d.substring(1),i="label"):d.startsWith(";")&&(d=d.substring(1),i="matrix");let l=e[d];if(l==null)continue;if(Array.isArray(l)){s=s.replace(a,v({explode:p,name:d,style:i,value:l}));continue}if(typeof l=="object"){s=s.replace(a,I({explode:p,name:d,style:i,value:l,valueOnly:!0}));continue}if(i==="matrix"){s=s.replace(a,`;${A({name:d,value:l})}`);continue}let u=encodeURIComponent(i==="label"?`.${l}`:l);s=s.replace(a,u)}return s},J=({baseUrl:e,path:t,query:s,querySerializer:o,url:a})=>{let p=a.startsWith("/")?a:`/${a}`,d=(e??"")+p;t&&(d=ce({path:t,url:d}));let i=s?o(s):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(d+=`?${i}`),d};function _(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var G=async(e,t)=>{let s=typeof t=="function"?await t(e):t;if(s)return e.scheme==="bearer"?`Bearer ${s}`:e.scheme==="basic"?`Basic ${btoa(s)}`:s};var X=({parameters:e={},...t}={})=>o=>{let a=[];if(o&&typeof o=="object")for(let p in o){let d=o[p];if(d==null)continue;let i=e[p]||t;if(Array.isArray(d)){let l=v({allowReserved:i.allowReserved,explode:!0,name:p,style:"form",value:d,...i.array});l&&a.push(l)}else if(typeof d=="object"){let l=I({allowReserved:i.allowReserved,explode:!0,name:p,style:"deepObject",value:d,...i.object});l&&a.push(l)}else{let l=A({allowReserved:i.allowReserved,name:p,value:d});l&&a.push(l)}}return a.join("&")},Y=e=>{if(!e)return"stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(s=>t.startsWith(s)))return"blob";if(t.startsWith("text/"))return"text"}},ue=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):!1,Z=async({security:e,...t})=>{for(let s of e){if(ue(t,s.name))continue;let o=await G(s,t.auth);if(!o)continue;let a=s.name??"Authorization";switch(s.in){case"query":t.query||(t.query={}),t.query[a]=o;break;case"cookie":t.headers.append("Cookie",`${a}=${o}`);break;case"header":default:t.headers.set(a,o);break}}},L=e=>J({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),K=(e,t)=>{let s={...e,...t};return s.baseUrl?.endsWith("/")&&(s.baseUrl=s.baseUrl.substring(0,s.baseUrl.length-1)),s.headers=z(e.headers,t.headers),s},me=e=>{let t=[];return e.forEach((s,o)=>{t.push([o,s])}),t},z=(...e)=>{let t=new Headers;for(let s of e){if(!s)continue;let o=s instanceof Headers?me(s):Object.entries(s);for(let[a,p]of o)if(p===null)t.delete(a);else if(Array.isArray(p))for(let d of p)t.append(a,d);else p!==void 0&&t.set(a,typeof p=="object"?JSON.stringify(p):p)}return t},C=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(t){let s=this.getInterceptorIndex(t);this.fns[s]&&(this.fns[s]=null)}exists(t){let s=this.getInterceptorIndex(t);return!!this.fns[s]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,s){let o=this.getInterceptorIndex(t);return this.fns[o]?(this.fns[o]=s,t):!1}use(t){return this.fns.push(t),this.fns.length-1}},ee=()=>({error:new C,request:new C,response:new C}),he=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),ye={"Content-Type":"application/json"},b=(e={})=>({...V,headers:ye,parseAs:"auto",querySerializer:he,...e});var U=(e={})=>{let t=K(b(),e),s=()=>({...t}),o=u=>(t=K(t,u),s()),a=ee(),p=async u=>{let n={...t,...u,fetch:u.fetch??t.fetch??globalThis.fetch,headers:z(t.headers,u.headers),serializedBody:void 0};n.security&&await Z({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let y=L(n);return{opts:n,url:y}},d=async u=>{let{opts:n,url:y}=await p(u),D={redirect:"follow",...n,body:_(n)},w=new Request(y,D);for(let h of a.request.fns)h&&(w=await h(w,n));let k=n.fetch,c;try{c=await k(w)}catch(h){let m=h;for(let O of a.error.fns)O&&(m=await O(h,void 0,w,n));if(m=m||{},n.throwOnError)throw m;return n.responseStyle==="data"?void 0:{error:m,request:w,response:void 0}}for(let h of a.response.fns)h&&(c=await h(c,w,n));let g={request:w,response:c};if(c.ok){let h=(n.parseAs==="auto"?Y(c.headers.get("Content-Type")):n.parseAs)??"json";if(c.status===204||c.headers.get("Content-Length")==="0"){let O;switch(h){case"arrayBuffer":case"blob":case"text":O=await c[h]();break;case"formData":O=new FormData;break;case"stream":O=c.body;break;case"json":default:O={};break}return n.responseStyle==="data"?O:{data:O,...g}}let m;switch(h){case"arrayBuffer":case"blob":case"formData":case"text":m=await c[h]();break;case"json":{let O=await c.text();m=O?JSON.parse(O):{};break}case"stream":return n.responseStyle==="data"?c.body:{data:c.body,...g}}return h==="json"&&(n.responseValidator&&await n.responseValidator(m),n.responseTransformer&&(m=await n.responseTransformer(m))),n.responseStyle==="data"?m:{data:m,...g}}let P=await c.text(),S;try{S=JSON.parse(P)}catch{}let f=S??P,T=f;for(let h of a.error.fns)h&&(T=await h(f,c,w,n));if(T=T||{},n.throwOnError)throw T;return n.responseStyle==="data"?void 0:{error:T,...g}},i=u=>n=>d({...n,method:u}),l=u=>async n=>{let{opts:y,url:D}=await p(n);return F({...y,body:y.body,headers:y.headers,method:u,onRequest:async(w,k)=>{let c=new Request(w,k);for(let g of a.request.fns)g&&(c=await g(c,y));return c},serializedBody:_(y),url:D})};return{buildUrl:L,connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:s,head:i("HEAD"),interceptors:a,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:d,setConfig:o,sse:{connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),head:l("HEAD"),options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),trace:l("TRACE")},trace:i("TRACE")}};var r=U(b({baseUrl:"https://product.services.rehive.com/api/"}));var Oe=e=>(e.client??r).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ge=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/",...e}),we=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/{identifier}/",...e}),Te=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/{identifier}/",...e}),Pe=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/categories/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),Ae=e=>(e?.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),De=e=>(e?.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Se=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/",...e}),xe=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e}),Ce=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/",...e}),be=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/",...e}),ke=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/",...e}),Me=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ie=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/webhooks/",...e}),ze=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{identifier}/webhooks/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{integration_id}/webhooks{webhook_id}/",...e}),_e=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{integration_id}/webhooks{webhook_id}/",...e}),Le=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{integration_id}/webhooks{webhook_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/integrations/{integration_id}/webhooks{webhook_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),je=e=>(e?.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/",...e}),qe=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/",...e}),Be=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/",...e}),$e=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qe=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/items/",...e}),He=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/items/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/payments/",...e}),Je=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/payments/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/refunds/",...e}),Xe=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{identifier}/refunds/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/items/{item_id}/",...e}),Ze=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/items/{item_id}/",...e}),er=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),rr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),tr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/payments/{payment_id}/",...e}),sr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/payments/{payment_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),nr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/payments/{payment_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ar=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/refunds/{refund_id}/",...e}),or=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/refunds/{refund_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ir=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/orders/{order_id}/refunds/{refund_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),dr=e=>(e?.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/",...e}),lr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/",...e,headers:{"Content-Type":"application/json",...e.headers}}),pr=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/",...e}),cr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/",...e}),ur=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),mr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),hr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/categories/",...e}),yr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Or=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/options/",...e}),gr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/options/",...e,headers:{"Content-Type":"application/json",...e.headers}}),wr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/prices/",...e}),Rr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/prices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/variants/",...e}),Pr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{identifier}/variants/",...e,headers:{"Content-Type":"application/json",...e.headers}}),fr=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/categories/{category_id}/",...e}),Er=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/categories/{category_id}/",...e}),Ar=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/",...e}),Dr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Sr=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/{image_id}/",...e}),xr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/{image_id}/",...e}),Cr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/{image_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),br=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/images/{image_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ur=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/options/{option_id}/",...e}),kr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/options/{option_id}/",...e}),Mr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/options/{option_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),vr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/options/{option_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ir=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/prices/{price_id}/",...e}),zr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/prices/{price_id}/",...e}),Vr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),_r=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Lr=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/",...e}),Kr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/",...e}),jr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Wr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/",...e}),Br=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),$r=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e}),Qr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e}),Nr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hr=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fr=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/redemptions/",...e}),Jr=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/redemptions/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/redemptions/{action_id}/",...e}),Xr=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/sellers/",...e}),Yr=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/sellers/{identifier}/",...e}),Zr=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/sellers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/sellers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/voucher-imports/",...e}),tt=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/voucher-imports/",...e,headers:{"Content-Type":"application/json",...e.headers}}),st=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/voucher-imports/{identifier}/",...e}),nt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/",...e}),at=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ot=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/",...e}),it=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/",...e}),dt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),lt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),pt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{identifier}/actions/",...e}),ct=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/{voucher_id}/actions/{action_id}/",...e}),ut=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/import/",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/vouchers/query/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=e=>(e.client??r).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),yt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/categories/",...e}),Ot=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/categories/{identifier}/",...e}),gt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/company/",...e}),wt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/currencies/",...e}),Rt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/currencies/{code}/",...e}),Tt=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/",...e}),Pt=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ft=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/",...e}),Et=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),At=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Dt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/integrations/",...e}),St=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{identifier}/integrations/",...e,headers:{"Content-Type":"application/json",...e.headers}}),xt=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/",...e}),Ct=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/",...e}),bt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ut=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),kt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/webhooks/",...e}),Mt=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{identifier}/webhooks/",...e,headers:{"Content-Type":"application/json",...e.headers}}),vt=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{integration_id}/webhooks/{webhook_id}/",...e}),It=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{integration_id}/webhooks/{webhook_id}/",...e}),zt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{integration_id}/webhooks/{webhook_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/integrations/{integration_id}/webhooks/{webhook_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),_t=e=>(e.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/",...e}),Lt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/",...e}),Kt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),jt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/items/",...e}),Wt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/payments/",...e}),Bt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/refunds/",...e}),$t=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{identifier}/refunds/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/items/{item_id}/",...e}),Nt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ht=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ft=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/payments/{payment_id}/",...e}),Jt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/payments/{payment_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/payments/{payment_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Xt=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/refunds/{refund_id}/",...e}),Yt=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/refunds/{refund_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Zt=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/orders/{order_id}/refunds/{refund_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),es=e=>(e.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/",...e}),rs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ts=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/",...e}),ss=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/",...e}),ns=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),as=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),os=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/categories/",...e}),is=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/categories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ds=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/options/",...e}),ls=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/options/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ps=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/prices/",...e}),cs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/prices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),us=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/variants/",...e}),ms=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{identifier}/variants/",...e,headers:{"Content-Type":"application/json",...e.headers}}),hs=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/categories/{category_id}/",...e}),ys=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/categories/{category_id}/",...e}),Os=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/",...e}),gs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ws=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/{image_id}/",...e}),Rs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/{image_id}/",...e}),Ts=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/{image_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ps=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/images/{image_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),fs=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/options/{option_id}/",...e}),Es=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/options/{option_id}/",...e}),As=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/options/{option_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ds=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/options/{option_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ss=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/prices/{price_id}/",...e}),xs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/prices/{price_id}/",...e}),Cs=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),bs=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Us=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/",...e}),ks=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/",...e}),Ms=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),vs=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Is=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/",...e}),zs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Vs=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e}),_s=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e}),Ls=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ks=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/products/{product_id}/variants/{variant_id}/prices/{price_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),js=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/redemptions/",...e}),qs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/redemptions/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ws=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/redemptions/{action_id}/",...e}),Bs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/voucher-imports/",...e}),$s=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/voucher-imports/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Qs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/voucher-imports/{identifier}/",...e}),Ns=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/voucher/import/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Hs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/",...e}),Fs=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Js=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{identifier}/",...e}),Gs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{identifier}/",...e}),Xs=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ys=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Zs=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{voucher_id}/actions/",...e}),en=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/{voucher_id}/actions/{action_id}/",...e}),rn=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/manager/sellers/{seller_id}/vouchers/query/",...e,headers:{"Content-Type":"application/json",...e.headers}}),tn=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/categories/",...e}),sn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/categories/{identifier}/",...e}),nn=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/company/",...e}),an=e=>(e?.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/",...e}),on=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/",...e,headers:{"Content-Type":"application/json",...e.headers}}),dn=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/",...e}),ln=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/",...e}),pn=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),cn=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),un=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/items/",...e}),mn=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/items/",...e,headers:{"Content-Type":"application/json",...e.headers}}),hn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/payments/",...e}),yn=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/payments/",...e,headers:{"Content-Type":"application/json",...e.headers}}),On=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{identifier}/refunds/",...e}),gn=e=>(e.client??r).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/items/{item_id}/",...e}),wn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/items/{item_id}/",...e}),Rn=e=>(e.client??r).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Tn=e=>(e.client??r).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/items/{item_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/payments/{payment_id}/",...e}),fn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/orders/{order_id}/refunds/{refund_id}/",...e}),En=e=>(e?.client??r).get({querySerializer:{parameters:{orderby:{array:{explode:!1}}}},security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/",...e}),An=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{identifier}/",...e}),Dn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{identifier}/prices/",...e}),Sn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{identifier}/variants/",...e}),xn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{product_id}/images/",...e}),Cn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{product_id}/images/{image_id}/",...e}),bn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{product_id}/prices/{price_id}/",...e}),Un=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/products/{product_id}/variants/{variant_id}/",...e}),kn=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/redemptions/",...e}),Mn=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/redemptions/",...e,headers:{"Content-Type":"application/json",...e.headers}}),vn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/redemptions/{action_id}/",...e}),In=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/sellers/",...e}),zn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/sellers/{seller_id}/",...e}),Vn=e=>(e?.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/",...e}),_n=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/{identifier}/",...e}),Ln=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/{identifier}/actions/",...e}),Kn=e=>(e.client??r).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/{voucher_id}/actions/{action_id}/",...e}),jn=e=>(e.client??r).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/vouchers/query/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qn=e=>(e.client??r).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function Wn(e){let t=U(H(e,"https://product.services.rehive.com/api/"));return N(j,t)}export{Wn as createProductsApi};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-
|
|
2
|
-
import '../create-auth-
|
|
1
|
+
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-B4Q01gHp.mjs';
|
|
2
|
+
import '../create-auth-CT_IFt3T.mjs';
|
|
3
3
|
|
|
4
4
|
type AuthToken = string | undefined;
|
|
5
5
|
interface Auth {
|
|
@@ -30,7 +30,7 @@ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
|
30
30
|
type ObjectStyle = 'form' | 'deepObject';
|
|
31
31
|
|
|
32
32
|
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
33
|
-
type BodySerializer = (body:
|
|
33
|
+
type BodySerializer = (body: any) => any;
|
|
34
34
|
type QuerySerializerOptionsObject = {
|
|
35
35
|
allowReserved?: boolean;
|
|
36
36
|
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-
|
|
2
|
-
import '../create-auth-
|
|
1
|
+
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-ADSlg8HX.js';
|
|
2
|
+
import '../create-auth-CT_IFt3T.js';
|
|
3
3
|
|
|
4
4
|
type AuthToken = string | undefined;
|
|
5
5
|
interface Auth {
|
|
@@ -30,7 +30,7 @@ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
|
30
30
|
type ObjectStyle = 'form' | 'deepObject';
|
|
31
31
|
|
|
32
32
|
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
33
|
-
type BodySerializer = (body:
|
|
33
|
+
type BodySerializer = (body: any) => any;
|
|
34
34
|
type QuerySerializerOptionsObject = {
|
|
35
35
|
allowReserved?: boolean;
|
|
36
36
|
array?: Partial<SerializerOptions<ArrayStyle>>;
|
package/dist/extensions/rain.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkGR5TETAUjs = require('../chunk-GR5TETAU.js');var _chunkOEIQFP6Tjs = require('../chunk-OEIQFP6T.js');var K={};_chunkOEIQFP6Tjs.a.call(void 0, K,{activateCreate:()=>me,adminCardsList:()=>Oe,adminCardsRetrieve:()=>
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkGR5TETAUjs = require('../chunk-GR5TETAU.js');var _chunkOEIQFP6Tjs = require('../chunk-OEIQFP6T.js');var K={};_chunkOEIQFP6Tjs.a.call(void 0, K,{activateCreate:()=>me,adminCardsList:()=>Oe,adminCardsRetrieve:()=>Re,adminCompanyPartialUpdate:()=>we,adminCompanyRetrieve:()=>ge,adminCompanyUpdate:()=>be,adminCurrenciesList:()=>Ce,adminCurrenciesPartialUpdate:()=>Se,adminCurrenciesRetrieve:()=>xe,adminCurrenciesUpdate:()=>Te,deactivateCreate:()=>Ae,rainWebhookCreate:()=>Ee,userApplicationsCreate:()=>Pe,userApplicationsList:()=>De,userApplicationsRetrieve:()=>qe,userCardsCreate:()=>ve,userCardsDataRetrieve:()=>Be,userCardsList:()=>je,userCardsPinPartialUpdate:()=>$e,userCardsPinRetrieve:()=>Le,userCardsPinUpdate:()=>Ke,userCardsRetrieve:()=>Ie,userPartialUpdate:()=>Ue,userRetrieve:()=>ke,userUpdate:()=>ze,webhookCreate:()=>Ne});var I={bodySerializer:e=>JSON.stringify(e,(r,t)=>typeof t=="bigint"?t.toString():t)};var oe={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Ve=Object.entries(oe);var Q=({onRequest:e,onSseError:r,onSseEvent:t,responseTransformer:a,responseValidator:s,sseDefaultRetryDelay:d,sseMaxRetryAttempts:i,sseMaxRetryDelay:o,sseSleepFn:p,url:u,...n})=>{let h,T=_nullishCoalesce(p, () => ((l=>new Promise(O=>setTimeout(O,l)))));return{stream:async function*(){let l=_nullishCoalesce(d, () => (3e3)),O=0,b=_nullishCoalesce(n.signal, () => (new AbortController().signal));for(;!b.aborted;){O++;let A=n.headers instanceof Headers?n.headers:new Headers(n.headers);h!==void 0&&A.set("Last-Event-ID",h);try{let C={redirect:"follow",...n,body:n.serializedBody,headers:A,signal:b},w=new Request(u,C);e&&(w=await e(u,C));let f=await(_nullishCoalesce(n.fetch, () => (globalThis.fetch)))(w);if(!f.ok)throw new Error(`SSE failed: ${f.status} ${f.statusText}`);if(!f.body)throw new Error("No body in SSE response");let m=f.body.pipeThrough(new TextDecoderStream).getReader(),E="",N=()=>{try{m.cancel()}catch (e2){}};b.addEventListener("abort",N);try{for(;;){let{done:re,value:te}=await m.read();if(re)break;E+=te,E=E.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
|
-
`);let W=
|
|
3
|
+
`);let W=E.split(`
|
|
4
4
|
|
|
5
|
-
`);
|
|
6
|
-
`),P=[],H;for(let
|
|
7
|
-
`);try{S=JSON.parse(b),V=!0}catch (e3){S=b}}V&&(s&&await s(S),a&&(S=await a(S))),_optionalChain([t, 'optionalCall', _2 => _2({data:S,event:H,id:n,retry:g})]),P.length&&(yield S)}}}finally{O.removeEventListener("abort",N),h.releaseLock()}break}catch(C){if(_optionalChain([r, 'optionalCall', _3 => _3(C)]),i!==void 0&&l>=i)break;let x=Math.min(g*2**(l-1),_nullishCoalesce(o, () => (3e4)));await w(x)}}}()}};var ie=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pe=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},de=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},q=({allowReserved:e,explode:r,name:t,style:a,value:s})=>{if(!r){let o=(e?s:s.map(p=>encodeURIComponent(p))).join(pe(a));switch(a){case"label":return`.${o}`;case"matrix":return`;${t}=${o}`;case"simple":return o;default:return`${t}=${o}`}}let d=ie(a),i=s.map(o=>a==="label"||a==="simple"?e?o:encodeURIComponent(o):A({allowReserved:e,name:t,value:o})).join(d);return a==="label"||a==="matrix"?d+i:i},A=({allowReserved:e,name:r,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?t:encodeURIComponent(t)}`},j=({allowReserved:e,explode:r,name:t,style:a,value:s,valueOnly:d})=>{if(s instanceof Date)return d?s.toISOString():`${t}=${s.toISOString()}`;if(a!=="deepObject"&&!r){let p=[];Object.entries(s).forEach(([u,n])=>{p=[...p,u,e?n:encodeURIComponent(n)]});let m=p.join(",");switch(a){case"form":return`${t}=${m}`;case"label":return`.${m}`;case"matrix":return`;${t}=${m}`;default:return m}}let i=de(a),o=Object.entries(s).map(([p,m])=>A({allowReserved:e,name:a==="deepObject"?`${t}[${p}]`:p,value:m})).join(i);return a==="label"||a==="matrix"?i+o:o};var ce=/\{[^{}]+\}/g,le=({path:e,url:r})=>{let t=r,a=r.match(ce);if(a)for(let s of a){let d=!1,i=s.substring(1,s.length-1),o="simple";i.endsWith("*")&&(d=!0,i=i.substring(0,i.length-1)),i.startsWith(".")?(i=i.substring(1),o="label"):i.startsWith(";")&&(i=i.substring(1),o="matrix");let p=e[i];if(p==null)continue;if(Array.isArray(p)){t=t.replace(s,q({explode:d,name:i,style:o,value:p}));continue}if(typeof p=="object"){t=t.replace(s,j({explode:d,name:i,style:o,value:p,valueOnly:!0}));continue}if(o==="matrix"){t=t.replace(s,`;${A({name:i,value:p})}`);continue}let m=encodeURIComponent(o==="label"?`.${p}`:p);t=t.replace(s,m)}return t},_=({baseUrl:e,path:r,query:t,querySerializer:a,url:s})=>{let d=s.startsWith("/")?s:`/${s}`,i=(_nullishCoalesce(e, () => ("")))+d;r&&(i=le({path:r,url:i}));let o=t?a(t):"";return o.startsWith("?")&&(o=o.substring(1)),o&&(i+=`?${o}`),i};function B(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var G=async(e,r)=>{let t=typeof r=="function"?await r(e):r;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t};var X=({parameters:e={},...r}={})=>a=>{let s=[];if(a&&typeof a=="object")for(let d in a){let i=a[d];if(i==null)continue;let o=e[d]||r;if(Array.isArray(i)){let p=q({allowReserved:o.allowReserved,explode:!0,name:d,style:"form",value:i,...o.array});p&&s.push(p)}else if(typeof i=="object"){let p=j({allowReserved:o.allowReserved,explode:!0,name:d,style:"deepObject",value:i,...o.object});p&&s.push(p)}else{let p=A({allowReserved:o.allowReserved,name:d,value:i});p&&s.push(p)}}return s.join("&")},Y=e=>{if(!e)return"stream";let r=_optionalChain([e, 'access', _4 => _4.split, 'call', _5 => _5(";"), 'access', _6 => _6[0], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>r.startsWith(t)))return"blob";if(r.startsWith("text/"))return"text"}},ue=(e,r)=>r?!!(e.headers.has(r)||_optionalChain([e, 'access', _9 => _9.query, 'optionalAccess', _10 => _10[r]])||_optionalChain([e, 'access', _11 => _11.headers, 'access', _12 => _12.get, 'call', _13 => _13("Cookie"), 'optionalAccess', _14 => _14.includes, 'call', _15 => _15(`${r}=`)])):!1,Z=async({security:e,...r})=>{for(let t of e){if(ue(r,t.name))continue;let a=await G(t,r.auth);if(!a)continue;let s=_nullishCoalesce(t.name, () => ("Authorization"));switch(t.in){case"query":r.query||(r.query={}),r.query[s]=a;break;case"cookie":r.headers.append("Cookie",`${s}=${a}`);break;case"header":default:r.headers.set(s,a);break}}},L=e=>_({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),$=(e,r)=>{let t={...e,...r};return _optionalChain([t, 'access', _16 => _16.baseUrl, 'optionalAccess', _17 => _17.endsWith, 'call', _18 => _18("/")])&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=v(e.headers,r.headers),t},fe=e=>{let r=[];return e.forEach((t,a)=>{r.push([a,t])}),r},v=(...e)=>{let r=new Headers;for(let t of e){if(!t)continue;let a=t instanceof Headers?fe(t):Object.entries(t);for(let[s,d]of a)if(d===null)r.delete(s);else if(Array.isArray(d))for(let i of d)r.append(s,i);else d!==void 0&&r.set(s,typeof d=="object"?JSON.stringify(d):d)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let t=this.getInterceptorIndex(r);this.fns[t]&&(this.fns[t]=null)}exists(r){let t=this.getInterceptorIndex(r);return!!this.fns[t]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,t){let a=this.getInterceptorIndex(r);return this.fns[a]?(this.fns[a]=t,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new k,request:new k,response:new k}),ye=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},U=(e={})=>({...I,headers:he,parseAs:"auto",querySerializer:ye,...e});var z=(e={})=>{let r=$(U(),e),t=()=>({...r}),a=u=>(r=$(r,u),t()),s=ee(),d=async u=>{let n={...r,...u,fetch:_nullishCoalesce(_nullishCoalesce(u.fetch, () => (r.fetch)), () => (globalThis.fetch)),headers:v(r.headers,u.headers),serializedBody:void 0};n.security&&await Z({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let w=L(n);return{opts:n,url:w}},i=async u=>{let{opts:n,url:w}=await d(u),D={redirect:"follow",...n,body:B(n)},R=new Request(w,D);for(let f of s.request.fns)f&&(R=await f(R,n));let g=n.fetch,l;try{l=await g(R)}catch(f){let h=f;for(let y of s.error.fns)y&&(h=await y(f,void 0,R,n));if(h=h||{},n.throwOnError)throw h;return n.responseStyle==="data"?void 0:{error:h,request:R,response:void 0}}for(let f of s.response.fns)f&&(l=await f(l,R,n));let O={request:R,response:l};if(l.ok){let f=_nullishCoalesce((n.parseAs==="auto"?Y(l.headers.get("Content-Type")):n.parseAs), () => ("json"));if(l.status===204||l.headers.get("Content-Length")==="0"){let y;switch(f){case"arrayBuffer":case"blob":case"text":y=await l[f]();break;case"formData":y=new FormData;break;case"stream":y=l.body;break;case"json":default:y={};break}return n.responseStyle==="data"?y:{data:y,...O}}let h;switch(f){case"arrayBuffer":case"blob":case"formData":case"text":h=await l[f]();break;case"json":{let y=await l.text();h=y?JSON.parse(y):{};break}case"stream":return n.responseStyle==="data"?l.body:{data:l.body,...O}}return f==="json"&&(n.responseValidator&&await n.responseValidator(h),n.responseTransformer&&(h=await n.responseTransformer(h))),n.responseStyle==="data"?h:{data:h,...O}}let E=await l.text(),C;try{C=JSON.parse(E)}catch (e4){}let x=_nullishCoalesce(C, () => (E)),T=x;for(let f of s.error.fns)f&&(T=await f(x,l,R,n));if(T=T||{},n.throwOnError)throw T;return n.responseStyle==="data"?void 0:{error:T,...O}},o=u=>n=>i({...n,method:u}),p=u=>async n=>{let{opts:w,url:D}=await d(n);return Q({...w,body:w.body,headers:w.headers,method:u,onRequest:async(R,g)=>{let l=new Request(R,g);for(let O of s.request.fns)O&&(l=await O(l,w));return l},serializedBody:B(w),url:D})};return{buildUrl:u=>L({...r,...u}),connect:o("CONNECT"),delete:o("DELETE"),get:o("GET"),getConfig:t,head:o("HEAD"),interceptors:s,options:o("OPTIONS"),patch:o("PATCH"),post:o("POST"),put:o("PUT"),request:i,setConfig:a,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:o("TRACE")}};var c=z(U({baseUrl:"https://rain.services.rehive.com/api/"}));var me=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _19 => _19.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/cards/",...e}),we=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/cards/{identifier}/",...e}),Re=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _20 => _20.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),be=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _21 => _21.client]), () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _22 => _22.headers])}}),ge=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _23 => _23.client]), () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _24 => _24.headers])}}),Ce=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _25 => _25.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/",...e}),xe=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e}),Se=e=>(_nullishCoalesce(e.client, () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(_nullishCoalesce(e.client, () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ae=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/rain/webhook/{company_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _26 => _26.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e}),Ue=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _27 => _27.client]), () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _28 => _28.headers])}}),ze=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _29 => _29.client]), () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _30 => _30.headers])}}),De=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _31 => _31.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/applications/",...e}),Pe=e=>(_nullishCoalesce(e.client, () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/applications/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/applications/{identifier}/",...e}),je=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _32 => _32.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/",...e}),ve=e=>(_nullishCoalesce(e.client, () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ie=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/",...e}),Be=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/data/",...e}),Le=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/pin/",...e}),$e=e=>(_nullishCoalesce(e.client, () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/pin/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(_nullishCoalesce(e.client, () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/pin/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function We(e){let r=z(_chunkGR5TETAUjs.c.call(void 0, e,"https://rain.services.rehive.com/api/"));return _chunkGR5TETAUjs.a.call(void 0, K,r)}exports.createRainApi = We;
|
|
5
|
+
`);E=_nullishCoalesce(W.pop(), () => (""));for(let ne of W){let se=ne.split(`
|
|
6
|
+
`),P=[],H;for(let g of se)if(g.startsWith("data:"))P.push(g.replace(/^data:\s*/,""));else if(g.startsWith("event:"))H=g.replace(/^event:\s*/,"");else if(g.startsWith("id:"))h=g.replace(/^id:\s*/,"");else if(g.startsWith("retry:")){let F=Number.parseInt(g.replace(/^retry:\s*/,""),10);Number.isNaN(F)||(l=F)}let x,V=!1;if(P.length){let g=P.join(`
|
|
7
|
+
`);try{x=JSON.parse(g),V=!0}catch (e3){x=g}}V&&(s&&await s(x),a&&(x=await a(x))),_optionalChain([t, 'optionalCall', _2 => _2({data:x,event:H,id:h,retry:l})]),P.length&&(yield x)}}}finally{b.removeEventListener("abort",N),m.releaseLock()}break}catch(C){if(_optionalChain([r, 'optionalCall', _3 => _3(C)]),i!==void 0&&O>=i)break;let w=Math.min(l*2**(O-1),_nullishCoalesce(o, () => (3e4)));await T(w)}}}()}};var ie=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pe=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},de=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},q=({allowReserved:e,explode:r,name:t,style:a,value:s})=>{if(!r){let o=(e?s:s.map(p=>encodeURIComponent(p))).join(pe(a));switch(a){case"label":return`.${o}`;case"matrix":return`;${t}=${o}`;case"simple":return o;default:return`${t}=${o}`}}let d=ie(a),i=s.map(o=>a==="label"||a==="simple"?e?o:encodeURIComponent(o):S({allowReserved:e,name:t,value:o})).join(d);return a==="label"||a==="matrix"?d+i:i},S=({allowReserved:e,name:r,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?t:encodeURIComponent(t)}`},j=({allowReserved:e,explode:r,name:t,style:a,value:s,valueOnly:d})=>{if(s instanceof Date)return d?s.toISOString():`${t}=${s.toISOString()}`;if(a!=="deepObject"&&!r){let p=[];Object.entries(s).forEach(([n,h])=>{p=[...p,n,e?h:encodeURIComponent(h)]});let u=p.join(",");switch(a){case"form":return`${t}=${u}`;case"label":return`.${u}`;case"matrix":return`;${t}=${u}`;default:return u}}let i=de(a),o=Object.entries(s).map(([p,u])=>S({allowReserved:e,name:a==="deepObject"?`${t}[${p}]`:p,value:u})).join(i);return a==="label"||a==="matrix"?i+o:o};var ce=/\{[^{}]+\}/g,le=({path:e,url:r})=>{let t=r,a=r.match(ce);if(a)for(let s of a){let d=!1,i=s.substring(1,s.length-1),o="simple";i.endsWith("*")&&(d=!0,i=i.substring(0,i.length-1)),i.startsWith(".")?(i=i.substring(1),o="label"):i.startsWith(";")&&(i=i.substring(1),o="matrix");let p=e[i];if(p==null)continue;if(Array.isArray(p)){t=t.replace(s,q({explode:d,name:i,style:o,value:p}));continue}if(typeof p=="object"){t=t.replace(s,j({explode:d,name:i,style:o,value:p,valueOnly:!0}));continue}if(o==="matrix"){t=t.replace(s,`;${S({name:i,value:p})}`);continue}let u=encodeURIComponent(o==="label"?`.${p}`:p);t=t.replace(s,u)}return t},_=({baseUrl:e,path:r,query:t,querySerializer:a,url:s})=>{let d=s.startsWith("/")?s:`/${s}`,i=(_nullishCoalesce(e, () => ("")))+d;r&&(i=le({path:r,url:i}));let o=t?a(t):"";return o.startsWith("?")&&(o=o.substring(1)),o&&(i+=`?${o}`),i};function B(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var G=async(e,r)=>{let t=typeof r=="function"?await r(e):r;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t};var X=({parameters:e={},...r}={})=>a=>{let s=[];if(a&&typeof a=="object")for(let d in a){let i=a[d];if(i==null)continue;let o=e[d]||r;if(Array.isArray(i)){let p=q({allowReserved:o.allowReserved,explode:!0,name:d,style:"form",value:i,...o.array});p&&s.push(p)}else if(typeof i=="object"){let p=j({allowReserved:o.allowReserved,explode:!0,name:d,style:"deepObject",value:i,...o.object});p&&s.push(p)}else{let p=S({allowReserved:o.allowReserved,name:d,value:i});p&&s.push(p)}}return s.join("&")},Y=e=>{if(!e)return"stream";let r=_optionalChain([e, 'access', _4 => _4.split, 'call', _5 => _5(";"), 'access', _6 => _6[0], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>r.startsWith(t)))return"blob";if(r.startsWith("text/"))return"text"}},ue=(e,r)=>r?!!(e.headers.has(r)||_optionalChain([e, 'access', _9 => _9.query, 'optionalAccess', _10 => _10[r]])||_optionalChain([e, 'access', _11 => _11.headers, 'access', _12 => _12.get, 'call', _13 => _13("Cookie"), 'optionalAccess', _14 => _14.includes, 'call', _15 => _15(`${r}=`)])):!1,Z=async({security:e,...r})=>{for(let t of e){if(ue(r,t.name))continue;let a=await G(t,r.auth);if(!a)continue;let s=_nullishCoalesce(t.name, () => ("Authorization"));switch(t.in){case"query":r.query||(r.query={}),r.query[s]=a;break;case"cookie":r.headers.append("Cookie",`${s}=${a}`);break;case"header":default:r.headers.set(s,a);break}}},L=e=>_({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),$=(e,r)=>{let t={...e,...r};return _optionalChain([t, 'access', _16 => _16.baseUrl, 'optionalAccess', _17 => _17.endsWith, 'call', _18 => _18("/")])&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=v(e.headers,r.headers),t},fe=e=>{let r=[];return e.forEach((t,a)=>{r.push([a,t])}),r},v=(...e)=>{let r=new Headers;for(let t of e){if(!t)continue;let a=t instanceof Headers?fe(t):Object.entries(t);for(let[s,d]of a)if(d===null)r.delete(s);else if(Array.isArray(d))for(let i of d)r.append(s,i);else d!==void 0&&r.set(s,typeof d=="object"?JSON.stringify(d):d)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let t=this.getInterceptorIndex(r);this.fns[t]&&(this.fns[t]=null)}exists(r){let t=this.getInterceptorIndex(r);return!!this.fns[t]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,t){let a=this.getInterceptorIndex(r);return this.fns[a]?(this.fns[a]=t,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new k,request:new k,response:new k}),ye=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},U=(e={})=>({...I,headers:he,parseAs:"auto",querySerializer:ye,...e});var z=(e={})=>{let r=$(U(),e),t=()=>({...r}),a=u=>(r=$(r,u),t()),s=ee(),d=async u=>{let n={...r,...u,fetch:_nullishCoalesce(_nullishCoalesce(u.fetch, () => (r.fetch)), () => (globalThis.fetch)),headers:v(r.headers,u.headers),serializedBody:void 0};n.security&&await Z({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let h=L(n);return{opts:n,url:h}},i=async u=>{let{opts:n,url:h}=await d(u),T={redirect:"follow",...n,body:B(n)},R=new Request(h,T);for(let y of s.request.fns)y&&(R=await y(R,n));let D=n.fetch,l;try{l=await D(R)}catch(y){let f=y;for(let m of s.error.fns)m&&(f=await m(y,void 0,R,n));if(f=f||{},n.throwOnError)throw f;return n.responseStyle==="data"?void 0:{error:f,request:R,response:void 0}}for(let y of s.response.fns)y&&(l=await y(l,R,n));let O={request:R,response:l};if(l.ok){let y=_nullishCoalesce((n.parseAs==="auto"?Y(l.headers.get("Content-Type")):n.parseAs), () => ("json"));if(l.status===204||l.headers.get("Content-Length")==="0"){let m;switch(y){case"arrayBuffer":case"blob":case"text":m=await l[y]();break;case"formData":m=new FormData;break;case"stream":m=l.body;break;case"json":default:m={};break}return n.responseStyle==="data"?m:{data:m,...O}}let f;switch(y){case"arrayBuffer":case"blob":case"formData":case"text":f=await l[y]();break;case"json":{let m=await l.text();f=m?JSON.parse(m):{};break}case"stream":return n.responseStyle==="data"?l.body:{data:l.body,...O}}return y==="json"&&(n.responseValidator&&await n.responseValidator(f),n.responseTransformer&&(f=await n.responseTransformer(f))),n.responseStyle==="data"?f:{data:f,...O}}let b=await l.text(),A;try{A=JSON.parse(b)}catch (e4){}let C=_nullishCoalesce(A, () => (b)),w=C;for(let y of s.error.fns)y&&(w=await y(C,l,R,n));if(w=w||{},n.throwOnError)throw w;return n.responseStyle==="data"?void 0:{error:w,...O}},o=u=>n=>i({...n,method:u}),p=u=>async n=>{let{opts:h,url:T}=await d(n);return Q({...h,body:h.body,headers:h.headers,method:u,onRequest:async(R,D)=>{let l=new Request(R,D);for(let O of s.request.fns)O&&(l=await O(l,h));return l},serializedBody:B(h),url:T})};return{buildUrl:L,connect:o("CONNECT"),delete:o("DELETE"),get:o("GET"),getConfig:t,head:o("HEAD"),interceptors:s,options:o("OPTIONS"),patch:o("PATCH"),post:o("POST"),put:o("PUT"),request:i,setConfig:a,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:o("TRACE")}};var c=z(U({baseUrl:"https://rain.services.rehive.com/api/"}));var me=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _19 => _19.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/cards/",...e}),Re=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/cards/{identifier}/",...e}),ge=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _20 => _20.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),we=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _21 => _21.client]), () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _22 => _22.headers])}}),be=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _23 => _23.client]), () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _24 => _24.headers])}}),Ce=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _25 => _25.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/",...e}),xe=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e}),Se=e=>(_nullishCoalesce(e.client, () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(_nullishCoalesce(e.client, () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/currencies/{code}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ae=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/rain/webhook/{company_id}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _26 => _26.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e}),Ue=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _27 => _27.client]), () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _28 => _28.headers])}}),ze=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _29 => _29.client]), () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _30 => _30.headers])}}),De=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _31 => _31.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/applications/",...e}),Pe=e=>(_nullishCoalesce(e.client, () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/applications/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/applications/{identifier}/",...e}),je=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _32 => _32.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/",...e}),ve=e=>(_nullishCoalesce(e.client, () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ie=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/",...e}),Be=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/data/",...e}),Le=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/pin/",...e}),$e=e=>(_nullishCoalesce(e.client, () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/pin/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(_nullishCoalesce(e.client, () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/cards/{identifier}/pin/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function We(e){let r=z(_chunkGR5TETAUjs.c.call(void 0, e,"https://rain.services.rehive.com/api/"));return _chunkGR5TETAUjs.a.call(void 0, K,r)}exports.createRainApi = We;
|