@drttix/drt-sdk 0.6.5 → 0.7.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.
Files changed (49) hide show
  1. package/azure-pipelines.yml +15 -6
  2. package/demo/default.html +2 -1
  3. package/demo/test.html +529 -102
  4. package/demo/with-base.html +10 -8
  5. package/dist/bundle/drt-sdk.js +1 -0
  6. package/dist/cjs/index.d.ts +5 -0
  7. package/dist/cjs/index.js +5 -0
  8. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  9. package/dist/cjs/src/generated/portal/core/request.js +3 -1
  10. package/dist/cjs/src/generated/portal/services/AccountService.d.ts +12 -2
  11. package/dist/cjs/src/generated/portal/services/AccountService.js +26 -2
  12. package/dist/cjs/src/generated/portal/services/AuthService.d.ts +2 -1
  13. package/dist/cjs/src/generated/portal/services/AuthService.js +5 -1
  14. package/dist/cjs/src/generated/portal/services/FeaturesBlockedSeatsService.d.ts +10 -7
  15. package/dist/cjs/src/generated/portal/services/FeaturesBlockedSeatsService.js +19 -7
  16. package/dist/cjs/src/generated/portal/services/OrderLookupService.d.ts +4 -3
  17. package/dist/cjs/src/generated/portal/services/OrderLookupService.js +7 -3
  18. package/dist/cjs/src/generated/scanner/core/request.d.ts +7 -10
  19. package/dist/cjs/src/generated/scanner/core/request.js +56 -37
  20. package/dist/cjs/src/generated/shopper/core/request.js +3 -1
  21. package/dist/cjs/src/scripts/build-all.js +9 -1
  22. package/dist/esm/index.d.ts +5 -0
  23. package/dist/esm/index.js +5 -0
  24. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  25. package/dist/esm/src/generated/portal/core/request.js +3 -1
  26. package/dist/esm/src/generated/portal/services/AccountService.d.ts +12 -2
  27. package/dist/esm/src/generated/portal/services/AccountService.js +26 -2
  28. package/dist/esm/src/generated/portal/services/AuthService.d.ts +2 -1
  29. package/dist/esm/src/generated/portal/services/AuthService.js +5 -1
  30. package/dist/esm/src/generated/portal/services/FeaturesBlockedSeatsService.d.ts +10 -7
  31. package/dist/esm/src/generated/portal/services/FeaturesBlockedSeatsService.js +19 -7
  32. package/dist/esm/src/generated/portal/services/OrderLookupService.d.ts +4 -3
  33. package/dist/esm/src/generated/portal/services/OrderLookupService.js +7 -3
  34. package/dist/esm/src/generated/scanner/core/request.d.ts +7 -10
  35. package/dist/esm/src/generated/scanner/core/request.js +58 -39
  36. package/dist/esm/src/generated/shopper/core/request.js +3 -1
  37. package/dist/esm/src/scripts/build-all.js +9 -1
  38. package/index.ts +5 -0
  39. package/package.json +3 -1
  40. package/src/custom/custom-request.txt +7 -2
  41. package/src/generated/portal/core/OpenAPI.ts +1 -1
  42. package/src/generated/portal/core/request.ts +7 -2
  43. package/src/generated/portal/services/AccountService.ts +30 -1
  44. package/src/generated/portal/services/AuthService.ts +7 -1
  45. package/src/generated/portal/services/FeaturesBlockedSeatsService.ts +23 -6
  46. package/src/generated/portal/services/OrderLookupService.ts +7 -2
  47. package/src/generated/scanner/core/request.ts +331 -266
  48. package/src/generated/shopper/core/request.ts +7 -2
  49. package/src/scripts/build-all.ts +14 -1
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>DRT SDK Demo — Custom Base</title>
6
+ <link rel="icon" href="data:," />
6
7
  </head>
7
8
  <body>
8
9
  <h1>DRT SDK Demo — Custom Base (window.DRT_API_BASE_URL)</h1>
@@ -17,18 +18,19 @@
17
18
  </script>
18
19
 
19
20
  <script type="module">
20
- import { DRT } from '../dist/esm/index.js';
21
+ import { DRT } from '/public/sdk/latest/drt-sdk.js';
21
22
 
22
23
  const out = document.getElementById('output');
23
24
 
24
25
  async function run() {
25
- try {
26
- const strings = await DRT.scanner.scanning.appControllerGetStrings();
27
- out.textContent = JSON.stringify(strings, null, 2);
28
- } catch (err) {
29
- console.error(err);
30
- out.textContent = `Request failed: ${err}`;
31
- }
26
+ try {
27
+ const strings =
28
+ await DRT.scanner.scanning.appControllerGetStrings();
29
+ out.textContent = JSON.stringify(strings, null, 2);
30
+ } catch (err) {
31
+ console.error(err);
32
+ out.textContent = `Request failed: ${err}`;
33
+ }
32
34
  }
33
35
 
34
36
  run();
@@ -0,0 +1 @@
1
+ var F=class extends Error{constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var S=function(a,e,t,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?a!==e||!i:!e.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(a,t):i?i.value=t:e.set(a,t),t},m=function(a,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?a!==e||!r:!e.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(a):r?r.value:e.get(a)},q,k,b,A,H,Q,D,Ve=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},z=class{constructor(e){q.set(this,void 0),k.set(this,void 0),b.set(this,void 0),A.set(this,void 0),H.set(this,void 0),Q.set(this,void 0),D.set(this,void 0),S(this,q,!1,"f"),S(this,k,!1,"f"),S(this,b,!1,"f"),S(this,A,[],"f"),S(this,H,new Promise((t,r)=>{S(this,Q,t,"f"),S(this,D,r,"f");let i=n=>{m(this,q,"f")||m(this,k,"f")||m(this,b,"f")||(S(this,q,!0,"f"),m(this,Q,"f")&&m(this,Q,"f").call(this,n))},d=n=>{m(this,q,"f")||m(this,k,"f")||m(this,b,"f")||(S(this,k,!0,"f"),m(this,D,"f")&&m(this,D,"f").call(this,n))},l=n=>{m(this,q,"f")||m(this,k,"f")||m(this,b,"f")||m(this,A,"f").push(n)};return Object.defineProperty(l,"isResolved",{get:()=>m(this,q,"f")}),Object.defineProperty(l,"isRejected",{get:()=>m(this,k,"f")}),Object.defineProperty(l,"isCancelled",{get:()=>m(this,b,"f")}),e(i,d,l)}),"f")}get[(q=new WeakMap,k=new WeakMap,b=new WeakMap,A=new WeakMap,H=new WeakMap,Q=new WeakMap,D=new WeakMap,Symbol.toStringTag)](){return"Cancellable Promise"}then(e,t){return m(this,H,"f").then(e,t)}catch(e){return m(this,H,"f").catch(e)}finally(e){return m(this,H,"f").finally(e)}cancel(){if(!(m(this,q,"f")||m(this,k,"f")||m(this,b,"f"))){if(S(this,b,!0,"f"),m(this,A,"f").length)try{for(let e of m(this,A,"f"))e()}catch(e){console.warn("Cancellation threw an error",e);return}m(this,A,"f").length=0,m(this,D,"f")&&m(this,D,"f").call(this,new Ve("Request aborted"))}}get isCancelled(){return m(this,b,"f")}};var u={BASE:"https://api.drttix.com/shopper",VERSION:"20260303.1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var ze=a=>a!=null,K=a=>typeof a=="string",ot=a=>K(a)&&a!=="",at=a=>typeof a=="object"&&typeof a.type=="string"&&typeof a.stream=="function"&&typeof a.arrayBuffer=="function"&&typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&/^(Blob|File)$/.test(a.constructor.name)&&/^(Blob|File)$/.test(a[Symbol.toStringTag]),mt=a=>a instanceof FormData,kt=a=>{try{return btoa(a)}catch{return Buffer.from(a).toString("base64")}},jt=a=>{let e=[],t=(i,d)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(d))}`)},r=(i,d)=>{ze(d)&&(Array.isArray(d)?d.forEach(l=>{r(i,l)}):typeof d=="object"?Object.entries(d).forEach(([l,n])=>{r(`${i}[${l}]`,n)}):t(i,d))};return Object.entries(a).forEach(([i,d])=>{r(i,d)}),e.length>0?`?${e.join("&")}`:""},Ct=(a,e)=>{let t=a.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",a.VERSION).replace(/{(.*?)}/g,(d,l)=>{var n;return!((n=e.path)===null||n===void 0)&&n.hasOwnProperty(l)?t(String(e.path[l])):d}),i=`${a.BASE}${r}`;return e.query?`${i}${jt(e.query)}`:i},Gt=a=>{if(a.formData){let e=new FormData,t=(r,i)=>{K(i)||at(i)?e.append(r,i):e.append(r,JSON.stringify(i))};return Object.entries(a.formData).filter(([r,i])=>ze(i)).forEach(([r,i])=>{Array.isArray(i)?i.forEach(d=>t(r,d)):t(r,i)}),e}},Qe=async(a,e)=>typeof e=="function"?e(a):e,Rt=async(a,e)=>{let[t,r,i,d]=await Promise.all([Qe(e,a.TOKEN),Qe(e,a.USERNAME),Qe(e,a.PASSWORD),Qe(e,a.HEADERS)]),l=Object.fromEntries(Object.entries(e.headers||{}).filter(([p,h])=>ze(h))),n=Object.entries(Object.assign(Object.assign({Accept:"application/json"},l),d)).filter(([p,h])=>ze(h)).reduce((p,[h,x])=>Object.assign(Object.assign({},p),{[h]:String(x)}),{});if(ot(t)&&(n.Authorization=`Bearer ${t}`),ot(r)&&ot(i)){let p=kt(`${r}:${i}`);n.Authorization=`Basic ${p}`}return e.body!==void 0&&(e.mediaType?n["Content-Type"]=e.mediaType:at(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":K(e.body)?n["Content-Type"]="text/plain":mt(e.body)||(n["Content-Type"]="application/json")),new Headers(n)},_t=a=>{var e;if(a.body!==void 0)return!((e=a.mediaType)===null||e===void 0)&&e.includes("/json")?JSON.stringify(a.body):K(a.body)||at(a.body)||mt(a.body)?a.body:JSON.stringify(a.body)},At=async(a,e,t,r,i,d,l)=>{let n=new AbortController,p={headers:d,body:r??i,method:e.method,signal:n.signal};return a.WITH_CREDENTIALS&&(p.credentials=a.CREDENTIALS),l(()=>n.abort()),await fetch(t,p)},Dt=(a,e)=>{if(e){let t=a.headers.get(e);if(K(t))return t}},Bt=async a=>{if(a.status!==204)try{let e=a.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(i=>e.toLowerCase().startsWith(i))?await a.json():await a.text()}catch(e){console.error(e)}},Nt=(a,e)=>{var t,r;let d=Object.assign({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},a.errors)[e.status];if(d)throw new F(a,e,d);if(!e.ok){let l=(t=e.status)!==null&&t!==void 0?t:"unknown",n=(r=e.statusText)!==null&&r!==void 0?r:"unknown",p=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new F(a,e,`Generic Error: status: ${l}; status text: ${n}; body: ${p}`)}},st,c=(a,e)=>new z(async(t,r,i)=>{try{let d=Ct(a,e),l=Gt(e),n=_t(e),p=await Rt(a,e),h={};p.forEach((g,w)=>{h[w]=g}),st&&(h.Cookie=st);let x=new Headers(h);if(!i.isCancelled){let g=await At(a,e,d,n,l,x,i),w=g.headers.get("set-cookie");w&&(st=w);let rt=await Bt(g),_=Dt(g,e.responseHeader),V={url:d,ok:g.ok,status:g.status,statusText:g.statusText,body:_??rt};Nt(e,V),t(V.body)}}catch(d){r(d)}});var Y=class{static getTheme(e,t,r){return c(u,{method:"GET",url:"/theme",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getDisposition(e,t,r){return c(u,{method:"GET",url:"/disposition",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getRoot(e,t,r){return c(u,{method:"GET",url:"/root",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getLandingPage(e,t,r){return c(u,{method:"GET",url:"/landing",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var X=class{static getCart(e,t,r){return c(u,{method:"GET",url:"/cart",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static deleteCart(e,t,r){return c(u,{method:"DELETE",url:"/cart",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var Z=class{static getCheckout(e,t,r){return c(u,{method:"GET",url:"/checkout",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static submitCheckout(e,t,r,i){return c(u,{method:"POST",url:"/checkout",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Returns validation error.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static saveNonce(e,t,r,i){return c(u,{method:"POST",url:"/checkout/nonce",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static clearNonce(e,t,r){return c(u,{method:"DELETE",url:"/checkout/nonce",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static saveDetails(e,t,r,i){return c(u,{method:"POST",url:"/checkout/details",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var ee=class{static requestEventAccess(e,t,r,i){return c(u,{method:"GET",url:"/code/access",headers:{shopperguid:t,accountid:r,apikey:i},query:{eventId:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static applyCode(e,t,r,i){return c(u,{method:"POST",url:"/code",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static applyCoupon(e,t,r,i){return c(u,{method:"POST",url:"/code/discount",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static removeCoupon(e,t,r,i){return c(u,{method:"DELETE",url:"/code/discount",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static applyPriorityCode(e,t,r,i){return c(u,{method:"POST",url:"/code/priority",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var te=class{static getDonations(e,t,r){return c(u,{method:"GET",url:"/donation",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static postDonation(e,t,r,i,d){return c(u,{method:"POST",url:"/donation",headers:{ipAddress:e,shopperguid:t,accountid:r,apikey:i},body:d,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var re=class{static getEvents(e,t,r){return c(u,{method:"GET",url:"/event",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getPerformers(e,t,r,i){return c(u,{method:"GET",url:"/event/performer",headers:{shopperguid:t,accountid:r,apikey:i},query:{performer:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getEventById(e,t,r,i){return c(u,{method:"GET",url:"/event/{id}",path:{id:e},headers:{shopperguid:t,accountid:r,apikey:i},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static postWishlist(e,t,r,i){return c(u,{method:"POST",url:"/event/waitlist",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var oe=class{static lookupGiftCard(e,t,r,i,d){return c(u,{method:"GET",url:"/gift-card",headers:{shopperguid:r,accountid:i,apikey:d},query:{code:e,pin:t},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static applyGiftCard(e,t,r,i){return c(u,{method:"POST",url:"/gift-card",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static removeGiftCard(e,t,r){return c(u,{method:"DELETE",url:"/gift-card",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getGiftCardCheckoutInfo(e,t,r){return c(u,{method:"GET",url:"/gift-card/checkout",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getGiftCardEditForm(e,t,r){return c(u,{method:"GET",url:"/gift-card/edit",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var se=class{static getReceipt(e,t,r,i){return c(u,{method:"GET",url:"/order/receipt",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getGwalletLink(e,t,r,i){return c(u,{method:"GET",url:"/order/gwallet",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getTestingGuid(e,t,r,i){return c(u,{method:"GET",url:"/order/testing",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getAssignNames(e,t,r,i){return c(u,{method:"GET",url:"/order/assign-names",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static postAssignNames(e,t,r,i,d){return c(u,{method:"POST",url:"/order/assign-names",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},body:d,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static postEmailTickets(e,t,r,i,d){return c(u,{method:"POST",url:"/order/email-tickets",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},body:d,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getTicketBlock(e,t,r,i){return c(u,{method:"GET",url:"/order/pickup",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static postPickup(e,t,r,i){return c(u,{method:"POST",url:"/order/pickup",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static postEmailReceipt(e,t,r,i){return c(u,{method:"POST",url:"/order/email-receipt",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getRefundRequest(e,t,r,i){return c(u,{method:"GET",url:"/order/refund-request",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static postRefundRequest(e,t,r,i,d){return c(u,{method:"POST",url:"/order/refund-request",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},body:d,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static postRecalcOrder(e,t,r,i,d){return c(u,{method:"POST",url:"/order/recalc",headers:{shopperguid:t,accountid:r,apikey:i},query:{guid:e},body:d,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static postRegisterStream(e,t,r,i){return c(u,{method:"POST",url:"/order/stream-register",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static deleteRegisteredStream(e,t,r,i){return c(u,{method:"DELETE",url:"/order/stream-register",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var ae=class{static summarizePayment(e,t,r,i){return c(u,{method:"POST",url:"/payment/summary",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static completePayment(e,t,r,i){return c(u,{method:"POST",url:"/payment/complete",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Returns the result of the payment failure.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static createCustomerSession(e,t,r){return c(u,{method:"POST",url:"/payment/customer",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var ie=class{static getProducts(e,t,r){return c(u,{method:"GET",url:"/product",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static addProduct(e,t,r,i){return c(u,{method:"POST",url:"/product",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static deleteProduct(e,t,r,i){return c(u,{method:"DELETE",url:"/product",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var de=class{static health(){return c(u,{method:"GET",url:"/seat/health",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static holdReservedSeat(e,t,r,i){return c(u,{method:"POST",url:"/seat/hold-reserved",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static holdGaSeat(e,t,r,i){return c(u,{method:"POST",url:"/seat/hold-ga",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static holdBaSeat(e,t,r,i){return c(u,{method:"POST",url:"/seat/hold-ba",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static releaseReservedSeat(e,t,r,i){return c(u,{method:"DELETE",url:"/seat/release-reserved",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static releaseGaSeat(e,t,r,i){return c(u,{method:"DELETE",url:"/seat/release-ga",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static updateTier(e,t,r,i){return c(u,{method:"POST",url:"/seat/update-tier",headers:{shopperguid:e,accountid:t,apikey:r},body:i,mediaType:"application/json",errors:{400:"Failed to update the tier information.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var ne=class{static getSessions(e,t,r){return c(u,{method:"GET",url:"/session",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static getHeartbeat(e,t,r){return c(u,{method:"GET",url:"/session/heartbeat",headers:{shopperguid:e,accountid:t,apikey:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var ft={};var yt={account:Y,cart:X,checkout:Z,code:ee,donation:te,event:re,giftcard:oe,order:se,payment:ae,product:ie,seat:de,session:ne};var $=class extends Error{constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var I=function(a,e,t,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?a!==e||!i:!e.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(a,t):i?i.value=t:e.set(a,t),t},f=function(a,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?a!==e||!r:!e.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(a):r?r.value:e.get(a)},j,C,P,B,W,ue,N,Ke=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},ce=class{constructor(e){j.set(this,void 0),C.set(this,void 0),P.set(this,void 0),B.set(this,void 0),W.set(this,void 0),ue.set(this,void 0),N.set(this,void 0),I(this,j,!1,"f"),I(this,C,!1,"f"),I(this,P,!1,"f"),I(this,B,[],"f"),I(this,W,new Promise((t,r)=>{I(this,ue,t,"f"),I(this,N,r,"f");let i=n=>{f(this,j,"f")||f(this,C,"f")||f(this,P,"f")||(I(this,j,!0,"f"),f(this,ue,"f")&&f(this,ue,"f").call(this,n))},d=n=>{f(this,j,"f")||f(this,C,"f")||f(this,P,"f")||(I(this,C,!0,"f"),f(this,N,"f")&&f(this,N,"f").call(this,n))},l=n=>{f(this,j,"f")||f(this,C,"f")||f(this,P,"f")||f(this,B,"f").push(n)};return Object.defineProperty(l,"isResolved",{get:()=>f(this,j,"f")}),Object.defineProperty(l,"isRejected",{get:()=>f(this,C,"f")}),Object.defineProperty(l,"isCancelled",{get:()=>f(this,P,"f")}),e(i,d,l)}),"f")}get[(j=new WeakMap,C=new WeakMap,P=new WeakMap,B=new WeakMap,W=new WeakMap,ue=new WeakMap,N=new WeakMap,Symbol.toStringTag)](){return"Cancellable Promise"}then(e,t){return f(this,W,"f").then(e,t)}catch(e){return f(this,W,"f").catch(e)}finally(e){return f(this,W,"f").finally(e)}cancel(){if(!(f(this,j,"f")||f(this,C,"f")||f(this,P,"f"))){if(I(this,P,!0,"f"),f(this,B,"f").length)try{for(let e of f(this,B,"f"))e()}catch(e){console.warn("Cancellation threw an error",e);return}f(this,B,"f").length=0,f(this,N,"f")&&f(this,N,"f").call(this,new Ke("Request aborted"))}}get isCancelled(){return f(this,P,"f")}};var T={BASE:"https://api.drttix.com/scanner-v3",VERSION:"20260307.1",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var Xe=a=>a!=null,le=a=>typeof a=="string",it=a=>le(a)&&a!=="",dt=a=>typeof a=="object"&&typeof a.type=="string"&&typeof a.stream=="function"&&typeof a.arrayBuffer=="function"&&typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&/^(Blob|File)$/.test(a.constructor.name)&&/^(Blob|File)$/.test(a[Symbol.toStringTag]),Tt=a=>a instanceof FormData,Ut=a=>{try{return btoa(a)}catch{return Buffer.from(a).toString("base64")}},Lt=a=>{let e=[],t=(i,d)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(d))}`)},r=(i,d)=>{Xe(d)&&(Array.isArray(d)?d.forEach(l=>{r(i,l)}):typeof d=="object"?Object.entries(d).forEach(([l,n])=>{r(`${i}[${l}]`,n)}):t(i,d))};return Object.entries(a).forEach(([i,d])=>{r(i,d)}),e.length>0?`?${e.join("&")}`:""},Ft=(a,e)=>{let t=a.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",a.VERSION).replace(/{(.*?)}/g,(d,l)=>{var n;return!((n=e.path)===null||n===void 0)&&n.hasOwnProperty(l)?t(String(e.path[l])):d}),i=`${a.BASE}${r}`;return e.query?`${i}${Lt(e.query)}`:i},Ht=a=>{if(a.formData){let e=new FormData,t=(r,i)=>{le(i)||dt(i)?e.append(r,i):e.append(r,JSON.stringify(i))};return Object.entries(a.formData).filter(([r,i])=>Xe(i)).forEach(([r,i])=>{Array.isArray(i)?i.forEach(d=>t(r,d)):t(r,i)}),e}},Ye=async(a,e)=>typeof e=="function"?e(a):e,$t=async(a,e)=>{let[t,r,i,d]=await Promise.all([Ye(e,a.TOKEN),Ye(e,a.USERNAME),Ye(e,a.PASSWORD),Ye(e,a.HEADERS)]),l=Object.fromEntries(Object.entries(e.headers||{}).filter(([p,h])=>Xe(h))),n=Object.entries(Object.assign(Object.assign({Accept:"application/json"},l),d)).filter(([p,h])=>Xe(h)).reduce((p,[h,x])=>Object.assign(Object.assign({},p),{[h]:String(x)}),{});if(it(t)&&(n.Authorization=`Bearer ${t}`),it(r)&&it(i)){let p=Ut(`${r}:${i}`);n.Authorization=`Basic ${p}`}return e.body!==void 0&&(e.mediaType?n["Content-Type"]=e.mediaType:dt(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":le(e.body)?n["Content-Type"]="text/plain":Tt(e.body)||(n["Content-Type"]="application/json")),new Headers(n)},Wt=a=>{var e;if(a.body!==void 0)return!((e=a.mediaType)===null||e===void 0)&&e.includes("/json")?JSON.stringify(a.body):le(a.body)||dt(a.body)||Tt(a.body)?a.body:JSON.stringify(a.body)},Mt=async(a,e,t,r,i,d,l)=>{let n=new AbortController,p={headers:d,body:r??i,method:e.method,signal:n.signal};return a.WITH_CREDENTIALS&&(p.credentials=a.CREDENTIALS),l(()=>n.abort()),await fetch(t,p)},Jt=(a,e)=>{if(e){let t=a.headers.get(e);if(le(t))return t}},Vt=async a=>{if(a.status!==204)try{let e=a.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(i=>e.toLowerCase().startsWith(i))?await a.json():await a.text()}catch(e){console.error(e)}},Qt=(a,e)=>{var t,r;let d=Object.assign({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},a.errors)[e.status];if(d)throw new $(a,e,d);if(!e.ok){let l=(t=e.status)!==null&&t!==void 0?t:"unknown",n=(r=e.statusText)!==null&&r!==void 0?r:"unknown",p=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new $(a,e,`Generic Error: status: ${l}; status text: ${n}; body: ${p}`)}},E=(a,e)=>new ce(async(t,r,i)=>{try{let d=Ft(a,e),l=Ht(e),n=Wt(e),p=await $t(a,e);if(!i.isCancelled){let h=await Mt(a,e,d,n,l,p,i),x=await Vt(h),g=Jt(h,e.responseHeader),w={url:d,ok:h.ok,status:h.status,statusText:h.statusText,body:g??x};Qt(e,w),t(w.body)}}catch(d){r(d)}});var pe=class{static download(e,t,r,i,d){return E(T,{method:"GET",url:"/db/dl",query:{c:e,devicename:t,username:r,ovr:d,lang:i},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static query(e,t,r,i){return E(T,{method:"GET",url:"/db/q",query:{c:e,ds:t,s:r,r:i},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static upload(e,t,r){return E(T,{method:"POST",url:"/db/ul",query:{c:e,devicename:t},body:r,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var he=class{static ordersControllerGetOrdersByPhone(e,t){return E(T,{method:"GET",url:"/orders/by-phone",query:{c:e,q:t},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static ordersControllerGetOrdersByName(e,t){return E(T,{method:"GET",url:"/orders/by-name",query:{c:e,q:t},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static ordersControllerGetOrdersByCreditCard(e,t){return E(T,{method:"GET",url:"/orders/by-cc",query:{c:e,q:t},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static ordersControllerGetOrdersByNumber(e,t){return E(T,{method:"GET",url:"/orders/by-number",query:{c:e,q:t},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var me=class{static appControllerHealth(){return E(T,{method:"GET",url:"/health",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerResetEvent(e,t){return E(T,{method:"GET",url:"/reset",query:{c:e,lang:t},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerScanProduct(e,t,r,i){return E(T,{method:"POST",url:"/merch",query:{c:e,devicename:t,lang:i},body:r,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerScanBarcode(e,t,r,i){return E(T,{method:"GET",url:"/ticket",query:{c:e,devicename:t,bc:r,lang:i},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerScanTicketFromPost(e,t,r,i){return E(T,{method:"POST",url:"/ticket",query:{c:e,devicename:t,lang:i},body:r,mediaType:"application/json",errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerGetSeat(e,t,r,i,d){return E(T,{method:"GET",url:"/seat",query:{c:e,section:t,row:r,seat:i,lang:d},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerGetReceipt(e,t){return E(T,{method:"GET",url:"/receipt",query:{guid:e,lang:t},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerGetReceiptMobile(e,t){return E(T,{method:"GET",url:"/receipt-mobile",query:{guid:e,lang:t},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerGetOrder(e,t,r,i){return E(T,{method:"GET",url:"/order",query:{c:e,oid:t,type:r,lang:i},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerGetShow(e,t,r){return E(T,{method:"GET",url:"/show",query:{c:e,devicename:t,lang:r},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}static appControllerGetStrings(e){return E(T,{method:"GET",url:"/strings",query:{lang:e},errors:{400:"Bad Request error with error details.",404:"Not found error with error details.",500:"Internal Server Error, please contact developers."}})}};var gt={};var Et={database:pe,orders:he,scanning:me};var M=class extends Error{constructor(e,t,r){super(r),this.name="ApiError",this.url=t.url,this.status=t.status,this.statusText=t.statusText,this.body=t.body,this.request=e}};var v=function(a,e,t,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?a!==e||!i:!e.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(a,t):i?i.value=t:e.set(a,t),t},y=function(a,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?a!==e||!r:!e.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(a):r?r.value:e.get(a)},G,R,O,U,J,fe,L,Ze=class extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}},ye=class{constructor(e){G.set(this,void 0),R.set(this,void 0),O.set(this,void 0),U.set(this,void 0),J.set(this,void 0),fe.set(this,void 0),L.set(this,void 0),v(this,G,!1,"f"),v(this,R,!1,"f"),v(this,O,!1,"f"),v(this,U,[],"f"),v(this,J,new Promise((t,r)=>{v(this,fe,t,"f"),v(this,L,r,"f");let i=n=>{y(this,G,"f")||y(this,R,"f")||y(this,O,"f")||(v(this,G,!0,"f"),y(this,fe,"f")&&y(this,fe,"f").call(this,n))},d=n=>{y(this,G,"f")||y(this,R,"f")||y(this,O,"f")||(v(this,R,!0,"f"),y(this,L,"f")&&y(this,L,"f").call(this,n))},l=n=>{y(this,G,"f")||y(this,R,"f")||y(this,O,"f")||y(this,U,"f").push(n)};return Object.defineProperty(l,"isResolved",{get:()=>y(this,G,"f")}),Object.defineProperty(l,"isRejected",{get:()=>y(this,R,"f")}),Object.defineProperty(l,"isCancelled",{get:()=>y(this,O,"f")}),e(i,d,l)}),"f")}get[(G=new WeakMap,R=new WeakMap,O=new WeakMap,U=new WeakMap,J=new WeakMap,fe=new WeakMap,L=new WeakMap,Symbol.toStringTag)](){return"Cancellable Promise"}then(e,t){return y(this,J,"f").then(e,t)}catch(e){return y(this,J,"f").catch(e)}finally(e){return y(this,J,"f").finally(e)}cancel(){if(!(y(this,G,"f")||y(this,R,"f")||y(this,O,"f"))){if(v(this,O,!0,"f"),y(this,U,"f").length)try{for(let e of y(this,U,"f"))e()}catch(e){console.warn("Cancellation threw an error",e);return}y(this,U,"f").length=0,y(this,L,"f")&&y(this,L,"f").call(this,new Ze("Request aborted"))}}get isCancelled(){return y(this,O,"f")}};var o={BASE:"",VERSION:"20260320.2",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var tt=a=>a!=null,Te=a=>typeof a=="string",nt=a=>Te(a)&&a!=="",ct=a=>typeof a=="object"&&typeof a.type=="string"&&typeof a.stream=="function"&&typeof a.arrayBuffer=="function"&&typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&/^(Blob|File)$/.test(a.constructor.name)&&/^(Blob|File)$/.test(a[Symbol.toStringTag]),wt=a=>a instanceof FormData,zt=a=>{try{return btoa(a)}catch{return Buffer.from(a).toString("base64")}},Kt=a=>{let e=[],t=(i,d)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(d))}`)},r=(i,d)=>{tt(d)&&(Array.isArray(d)?d.forEach(l=>{r(i,l)}):typeof d=="object"?Object.entries(d).forEach(([l,n])=>{r(`${i}[${l}]`,n)}):t(i,d))};return Object.entries(a).forEach(([i,d])=>{r(i,d)}),e.length>0?`?${e.join("&")}`:""},Yt=(a,e)=>{let t=a.ENCODE_PATH||encodeURI,r=e.url.replace("{api-version}",a.VERSION).replace(/{(.*?)}/g,(d,l)=>{var n;return!((n=e.path)===null||n===void 0)&&n.hasOwnProperty(l)?t(String(e.path[l])):d}),i=`${a.BASE}${r}`;return e.query?`${i}${Kt(e.query)}`:i},Xt=a=>{if(a.formData){let e=new FormData,t=(r,i)=>{Te(i)||ct(i)?e.append(r,i):e.append(r,JSON.stringify(i))};return Object.entries(a.formData).filter(([r,i])=>tt(i)).forEach(([r,i])=>{Array.isArray(i)?i.forEach(d=>t(r,d)):t(r,i)}),e}},et=async(a,e)=>typeof e=="function"?e(a):e,Zt=async(a,e)=>{let[t,r,i,d]=await Promise.all([et(e,a.TOKEN),et(e,a.USERNAME),et(e,a.PASSWORD),et(e,a.HEADERS)]),l=Object.fromEntries(Object.entries(e.headers||{}).filter(([p,h])=>tt(h))),n=Object.entries(Object.assign(Object.assign({Accept:"application/json"},l),d)).filter(([p,h])=>tt(h)).reduce((p,[h,x])=>Object.assign(Object.assign({},p),{[h]:String(x)}),{});if(nt(t)&&(n.Authorization=`Bearer ${t}`),nt(r)&&nt(i)){let p=zt(`${r}:${i}`);n.Authorization=`Basic ${p}`}return e.body!==void 0&&(e.mediaType?n["Content-Type"]=e.mediaType:ct(e.body)?n["Content-Type"]=e.body.type||"application/octet-stream":Te(e.body)?n["Content-Type"]="text/plain":wt(e.body)||(n["Content-Type"]="application/json")),new Headers(n)},er=a=>{var e;if(a.body!==void 0)return!((e=a.mediaType)===null||e===void 0)&&e.includes("/json")?JSON.stringify(a.body):Te(a.body)||ct(a.body)||wt(a.body)?a.body:JSON.stringify(a.body)},tr=async(a,e,t,r,i,d,l)=>{let n=new AbortController,p={headers:d,body:r??i,method:e.method,signal:n.signal};return a.WITH_CREDENTIALS&&(p.credentials=a.CREDENTIALS),l(()=>n.abort()),await fetch(t,p)},rr=(a,e)=>{if(e){let t=a.headers.get(e);if(Te(t))return t}},or=async a=>{if(a.status!==204)try{let e=a.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(i=>e.toLowerCase().startsWith(i))?await a.json():await a.text()}catch(e){console.error(e)}},sr=(a,e)=>{var t,r;let d=Object.assign({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},a.errors)[e.status];if(d)throw new M(a,e,d);if(!e.ok){let l=(t=e.status)!==null&&t!==void 0?t:"unknown",n=(r=e.statusText)!==null&&r!==void 0?r:"unknown",p=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new M(a,e,`Generic Error: status: ${l}; status text: ${n}; body: ${p}`)}},ut,s=(a,e)=>new ye(async(t,r,i)=>{try{let d=Yt(a,e),l=Xt(e),n=er(e),p=await Zt(a,e),h={};p.forEach((g,w)=>{h[w]=g}),ut&&(h.Cookie=ut);let x=new Headers(h);if(!i.isCancelled){let g=await tr(a,e,d,n,l,x,i),w=g.headers.get("set-cookie");w&&(ut=w);let rt=await or(g),_=rr(g,e.responseHeader),V={url:d,ok:g.ok,status:g.status,statusText:g.statusText,body:_??rt};sr(e,V),t(V.body)}}catch(d){r(d)}});var ge=class{static getPortalObject(){return s(o,{method:"GET",url:"/account/permission"})}static createAccount(e,t){return s(o,{method:"POST",url:"/account/create",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updatePermission(e,t){return s(o,{method:"PUT",url:"/account/{id}",path:{id:e},body:t,mediaType:"application/json"})}static deleteuser(e){return s(o,{method:"DELETE",url:"/account/{id}",path:{id:e}})}static renewPolicy(e,t){return s(o,{method:"PUT",url:"/account/{policyId}/renew-policy",path:{policyId:t},headers:{"x-studio-id":e}})}};var Ee=class{static getTicketDetails(e,t){return s(o,{method:"POST",url:"/accounting/tickets",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getCollectionDetails(e,t){return s(o,{method:"POST",url:"/accounting/collection-details",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getProductDetails(e,t){return s(o,{method:"POST",url:"/accounting/products",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getDonationDetails(e,t){return s(o,{method:"POST",url:"/accounting/donations",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getTaxDetails(e,t){return s(o,{method:"POST",url:"/accounting/taxes",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getAccountingDetails(e){return s(o,{method:"GET",url:"/accounting",headers:{"x-studio-id":e}})}static getOtherDetails(e){return s(o,{method:"GET",url:"/accounting/others",headers:{"x-studio-id":e}})}static getWeeklyDetails(e){return s(o,{method:"GET",url:"/accounting/weekly",headers:{"x-studio-id":e}})}static getStudioFinancialDetails(e){return s(o,{method:"GET",url:"/accounting/financials",headers:{"x-studio-id":e}})}static getStudioDisputes(e){return s(o,{method:"GET",url:"/accounting/disputes",headers:{"x-studio-id":e}})}static getStudioRefunds(e){return s(o,{method:"GET",url:"/accounting/refunds",headers:{"x-studio-id":e}})}static getStripeDetails(e){return s(o,{method:"GET",url:"/accounting/stripe",headers:{"x-studio-id":e}})}static acknowledgeDispute(e,t){return s(o,{method:"PUT",url:"/accounting/{disputeId}/acknowledge-dispute",path:{disputeId:t},headers:{"x-studio-id":e}})}static getRefundSettings(e){return s(o,{method:"GET",url:"/accounting/refund-settings",headers:{"x-studio-id":e}})}static getPaymentGatewayDetails(e){return s(o,{method:"GET",url:"/accounting/payment-details",headers:{"x-studio-id":e}})}static getRefundDetails(e,t){return s(o,{method:"GET",url:"/accounting/{refundId}/refund-details",path:{refundId:t},headers:{"x-studio-id":e}})}static resetTaxPayment(e,t){return s(o,{method:"PUT",url:"/accounting/reset-tax-payment",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateBankingInfo(e,t){return s(o,{method:"PUT",url:"/accounting/update-banking-info",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateTaxInfo(e,t){return s(o,{method:"PUT",url:"/accounting/update-tax-info",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static declineRefund(e,t){return s(o,{method:"PUT",url:"/accounting/{refundId}/decline-refund",path:{refundId:t},headers:{"x-studio-id":e}})}static refundUpdateAmount(e,t,r){return s(o,{method:"PUT",url:"/accounting/{refundId}/refund-update-amount",path:{refundId:t},headers:{"x-studio-id":e},query:{amount:r}})}static acceptRefund(e,t,r){return s(o,{method:"PUT",url:"/accounting/{refundId}/accept-refund",path:{refundId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}};var we=class{static getBuyer(e,t){return s(o,{method:"GET",url:"/{orderId}/buyer-details",path:{orderId:t},headers:{"x-studio-id":e}})}};var xe=class{static sendForgotPassword(e,t){return s(o,{method:"POST",url:"/auth/forgot-password",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static verifyOtp(e,t){return s(o,{method:"POST",url:"/auth/verify-otp",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static login(e,t){return s(o,{method:"POST",url:"/auth/login",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static logout(){return s(o,{method:"POST",url:"/auth/logout"})}static changePassword(e,t){return s(o,{method:"POST",url:"/auth/change-password",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static refreshPortalRoutesCache(){return s(o,{method:"POST",url:"/auth/refresh-portal-routes-cache"})}};var Se=class{static getAllEmail(e,t){return s(o,{method:"GET",url:"/client-tools/generated-emails",headers:{"x-studio-id":e},query:{searchQuery:t}})}static deleteEmails(e,t){return s(o,{method:"DELETE",url:"/client-tools/generated-emails",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getEmailDetails(e,t){return s(o,{method:"GET",url:"/client-tools/generated-emails/{mailId}",path:{mailId:t},headers:{"x-studio-id":e}})}static editEmail(e,t,r){return s(o,{method:"PUT",url:"/client-tools/generated-emails/{mailId}",path:{mailId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}};var be=class{static getInterview(e){return s(o,{method:"GET",url:"/client-tools/parent-letter",headers:{"x-studio-id":e}})}};var Ie=class{static getPatronStats(e){return s(o,{method:"GET",url:"/client-tools/patron-database",headers:{"x-studio-id":e}})}static deletePatronCodes(e,t){return s(o,{method:"DELETE",url:"/client-tools/patron-database",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getShowDetails(e){return s(o,{method:"GET",url:"/client-tools/patron-database/show-details",headers:{"x-studio-id":e}})}static getStudioIntegratorDetails(e){return s(o,{method:"GET",url:"/client-tools/patron-database/studio-integrator-details",headers:{"x-studio-id":e}})}static getPatronCodes(e,t,r){return s(o,{method:"GET",url:"/client-tools/patron-database/codes",headers:{"x-studio-id":e},query:{status:t,searchQuery:r}})}static getPatronTags(e){return s(o,{method:"GET",url:"/client-tools/patron-database/tags",headers:{"x-studio-id":e}})}static getPatronCodeDetails(e,t){return s(o,{method:"GET",url:"/client-tools/patron-database/code-details",headers:{"x-studio-id":e},query:{emailId:t}})}static getPatronCodeDetails1(e,t){return s(o,{method:"GET",url:"/client-tools/patron-database/{patronId}/code-details",path:{patronId:t},headers:{"x-studio-id":e}})}static createPatronTag(e,t){return s(o,{method:"POST",url:"/client-tools/patron-database/create-patron-tag",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static createPatronCodes(e,t){return s(o,{method:"POST",url:"/client-tools/patron-database/create-patron-codes",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static sendMail(e,t){return s(o,{method:"POST",url:"/client-tools/patron-database/send-mail",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static provideDiscountAccess(e,t){return s(o,{method:"POST",url:"/client-tools/patron-database/discount-access",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static providePatronAccess(e,t){return s(o,{method:"POST",url:"/client-tools/patron-database/patron-access",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updatePatronSettings(e,t){return s(o,{method:"PUT",url:"/client-tools/patron-database/settings",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updatePatronTag(e,t){return s(o,{method:"PUT",url:"/client-tools/patron-database/tag",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static deletePatronTag(e,t){return s(o,{method:"DELETE",url:"/client-tools/patron-database/tag",headers:{"x-studio-id":e},query:{tag:t}})}static updatePatronCode(e,t,r){return s(o,{method:"PUT",url:"/client-tools/patron-database/{patronId}",path:{patronId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static deletePatronCouponCode(e,t){return s(o,{method:"DELETE",url:"/client-tools/patron-database/coupon-code",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static deletePriorityCode(e,t){return s(o,{method:"DELETE",url:"/client-tools/patron-database/priority-code",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}};var Pe=class{static getSeatAssignmentSettings(e){return s(o,{method:"GET",url:"/client-tools/seat-assignment-tool/settings",headers:{"x-studio-id":e}})}};var ve=class{static getStripeSettings(e){return s(o,{method:"GET",url:"/client-tools/stripe-onboarding",headers:{"x-studio-id":e}})}};var Oe=class{static getStudioDesign(e){return s(o,{method:"GET",url:"/client-tools/theme-builder/studio-design",headers:{"x-studio-id":e}})}static updateStudioDesign(e,t){return s(o,{method:"PUT",url:"/client-tools/theme-builder/studio-design",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getStudioImages(e,t,r,i,d,l,n){return s(o,{method:"GET",url:"/client-tools/theme-builder/images",headers:{"x-studio-id":e},query:{format:t,library:r,minWidth:i,maxWidth:d,minHeight:l,maxHeight:n}})}static startImageUpload(e,t){return s(o,{method:"POST",url:"/client-tools/theme-builder/start-image-upload",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateImageUrl(e,t,r,i,d){return s(o,{method:"POST",url:"/client-tools/theme-builder/update-image-url",headers:{"x-studio-id":e},query:{format:t,width:r,height:i},body:d,mediaType:"application/json"})}};var qe=class{static getThemes(e,t){return s(o,{method:"GET",url:"/client-tools/theme-library",query:{categoryId:e,searchQuery:t}})}static getThemeCategories(){return s(o,{method:"GET",url:"/client-tools/theme-library/categories"})}static getThemeDetails(e){return s(o,{method:"GET",url:"/client-tools/theme-library/{themeId}",path:{themeId:e}})}};var ke=class{static fetchTicketingDetails(e){return s(o,{method:"GET",url:"/client-tools/ticketing-link/details",headers:{"x-studio-id":e}})}static generateFlyer(e,t,r,i){return s(o,{method:"GET",url:"/client-tools/ticketing-link/flyer",headers:{"x-studio-id":e},query:{show:t,start:r,end:i}})}};var je=class{static getShows(e){return s(o,{method:"GET",url:"/client-tools/ticket-scanning",headers:{"x-studio-id":e}})}static scannedTicketDetails(e,t){return s(o,{method:"GET",url:"/client-tools/ticket-scanning/{showId}",path:{showId:t},headers:{"x-studio-id":e}})}static resetScannedTicketDetails(e){return s(o,{method:"PUT",url:"/client-tools/ticket-scanning/{showId}",path:{showId:e}})}};var Ce=class{static getUnapprovedOrders(e){return s(o,{method:"GET",url:"/client-tools/unapproved-orders",headers:{"x-studio-id":e}})}static getOrderSeats(e,t){return s(o,{method:"GET",url:"/client-tools/unapproved-orders/{orderId}/seats",path:{orderId:t},headers:{"x-studio-id":e}})}static approveOrder(e,t,r){return s(o,{method:"PUT",url:"/client-tools/unapproved-orders/{orderId}/approve-order",path:{orderId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}};var Ge=class{static getWaitlistShows(e,t,r){return s(o,{method:"GET",url:"/client-tools/waitlist",headers:{"x-studio-id":e},query:{showId:t,showFulfilled:r}})}static createWaitlist(e,t){return s(o,{method:"POST",url:"/client-tools/waitlist",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getWaitlistFilterShows(e){return s(o,{method:"GET",url:"/client-tools/waitlist/shows",headers:{"x-studio-id":e}})}static getWaitlistById(e,t){return s(o,{method:"GET",url:"/client-tools/waitlist/{waitlistId}",path:{waitlistId:t},headers:{"x-studio-id":e}})}static updateWaitlist(e,t,r){return s(o,{method:"PUT",url:"/client-tools/waitlist/{waitlistId}",path:{waitlistId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static deleteWaitlist(e,t){return s(o,{method:"DELETE",url:"/client-tools/waitlist/{waitlistId}",path:{waitlistId:t},headers:{"x-studio-id":e}})}static assignWaitlistToShows(e,t,r){return s(o,{method:"POST",url:"/client-tools/waitlist/{waitlistId}/assign-waitlist",path:{waitlistId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static updateAllOrNoneStatus(e,t){return s(o,{method:"PUT",url:"/client-tools/waitlist/{waitlistId}/all-or-none",path:{waitlistId:t},headers:{"x-studio-id":e}})}};var Re=class{static getDashboard(e){return s(o,{method:"GET",url:"/dashboard",headers:{"x-studio-id":e}})}static getBookmarks(e){return s(o,{method:"GET",url:"/dashboard/bookmarks",headers:{"x-studio-id":e}})}static search(e,t){return s(o,{method:"GET",url:"/dashboard/search",headers:{"x-studio-id":e},query:{q:t}})}static searchLog(e){return s(o,{method:"POST",url:"/dashboard/search-log",body:e,mediaType:"application/json"})}};var _e=class{static getShowsForFilter(e){return s(o,{method:"GET",url:"/features/blocked-seats/shows",headers:{"x-studio-id":e}})}static getShowsForBlocking(e){return s(o,{method:"GET",url:"/features/blocked-seats/shows-for-blocking",headers:{"x-studio-id":e}})}static getSeatDetails(e,t,r,i){return s(o,{method:"GET",url:"/features/blocked-seats/seat-details",headers:{"x-studio-id":e},query:{showId:i,filter:t,searchQuery:r}})}static getReservationCodes(e){return s(o,{method:"GET",url:"/features/blocked-seats/reservation-codes",headers:{"x-studio-id":e}})}static getSelectedSeats(){return s(o,{method:"GET",url:"/features/blocked-seats/selected-seats"})}static initializeSeatEngine(e,t){return s(o,{method:"GET",url:"/features/blocked-seats/{showId}/initialize-seat-engine",path:{showId:e},headers:{"x-studio-id":t}})}static getSeatEngineOccupancy(e,t){return s(o,{method:"GET",url:"/features/blocked-seats/{showId}/occupancy",path:{showId:e},headers:{"x-studio-id":t}})}static getSelectedSeats1(e,t){return s(o,{method:"GET",url:"/features/blocked-seats/{showId}/blocked-seats-check",path:{showId:t},headers:{"x-studio-id":e}})}static exchangeShowDetail(e,t){return s(o,{method:"GET",url:"/features/blocked-seats/{showId}/exchange-show-detail",path:{showId:t},headers:{"x-studio-id":e}})}static getReservationCodeDetails(e,t){return s(o,{method:"GET",url:"/features/blocked-seats/{codeId}/reservation-code-detail",path:{codeId:t},headers:{"x-studio-id":e}})}static getEmailDetails(e,t,r){return s(o,{method:"POST",url:"/features/blocked-seats/email-details",path:{seatId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static sendEmail(e,t){return s(o,{method:"POST",url:"/features/blocked-seats/send-email",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static sendMailForReservationCode(e,t){return s(o,{method:"POST",url:"/features/blocked-seats/send-reservation-code-email",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static assignSeats(e,t){return s(o,{method:"POST",url:"/features/blocked-seats/assign-seats",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static blockSeats(e,t){return s(o,{method:"POST",url:"/features/blocked-seats/block-seats",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static unblockSeats(e,t){return s(o,{method:"POST",url:"/features/blocked-seats/unblock-seats",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static downloadTickets(e,t){return s(o,{method:"POST",url:"/features/blocked-seats/download-tickets",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static holdGeneralSeatTickets(e,t,r){return s(o,{method:"POST",url:"/features/blocked-seats/{showId}/hold-general-seat-tickets",path:{showId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static holdChartSeatTickets(e,t,r){return s(o,{method:"POST",url:"/features/blocked-seats/{showId}/hold-chart-seat-tickets",path:{showId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static releaseSeat(e,t){return s(o,{method:"PUT",url:"/features/blocked-seats/release-seat",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static releaseReservationCode(e,t){return s(o,{method:"PUT",url:"/features/blocked-seats/release-reservation-code",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static releaseAllSeats(){return s(o,{method:"PUT",url:"/features/blocked-seats/release-all-seats"})}static toggleSeatInCartTicket(e,t){return s(o,{method:"PUT",url:"/features/blocked-seats/{showId}/{seatId}/toggle-cart-ticket",path:{showId:e,seatId:t}})}};var Ae=class{static getCheckoutQuestions(e){return s(o,{method:"GET",url:"/features/checkout-questions",headers:{"x-studio-id":e}})}static createCheckoutQuestion(e,t){return s(o,{method:"POST",url:"/features/checkout-questions",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getShowsTypesProducts(e){return s(o,{method:"GET",url:"/features/checkout-questions/details",headers:{"x-studio-id":e}})}static getCheckoutQuestionById(e,t){return s(o,{method:"GET",url:"/features/checkout-questions/{questionId}",path:{questionId:t},headers:{"x-studio-id":e}})}static updateCheckoutQuestion(e,t,r){return s(o,{method:"PUT",url:"/features/checkout-questions/{questionId}",path:{questionId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static deleteCheckoutQuestion(e,t){return s(o,{method:"DELETE",url:"/features/checkout-questions/{questionId}",path:{questionId:t},headers:{"x-studio-id":e}})}};var De=class{static getCouponFilter(e){return s(o,{method:"GET",url:"/features/discounts/coupon-filter",headers:{"x-studio-id":e}})}static getCoupons(e,t,r,i){return s(o,{method:"GET",url:"/features/discounts/coupons",headers:{"x-studio-id":e},query:{status:t,searchQuery:r,filter:i}})}static getGroupCodes(e){return s(o,{method:"GET",url:"/features/discounts/group-codes",headers:{"x-studio-id":e}})}static getCouponData(e){return s(o,{method:"GET",url:"/features/discounts/coupon-data",headers:{"x-studio-id":e}})}static getAvailableCouponData(e){return s(o,{method:"GET",url:"/features/discounts/available-coupons",headers:{"x-studio-id":e}})}static getCustomLogic(e,t){return s(o,{method:"GET",url:"/features/discounts/{couponId}/custom-logic",path:{couponId:t},headers:{"x-studio-id":e}})}static resendMailForCoupons(e,t){return s(o,{method:"POST",url:"/features/discounts/resend-mail",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static validateEmailForCoupons(e,t){return s(o,{method:"POST",url:"/features/discounts/validate-email",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static createCode(e,t){return s(o,{method:"POST",url:"/features/discounts/create-code",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static createGroupCode(e,t){return s(o,{method:"POST",url:"/features/discounts/create-group-code",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateCode(e,t){return s(o,{method:"PUT",url:"/features/discounts/update-code",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static expireGroupCode(e,t){return s(o,{method:"PUT",url:"/features/discounts/{groupCodeId}/expire",path:{groupCodeId:t},headers:{"x-studio-id":e}})}static expireAllCoupons(e){return s(o,{method:"PUT",url:"/features/discounts/expire-all",headers:{"x-studio-id":e}})}static deleteCoupons(e,t){return s(o,{method:"DELETE",url:"/features/discounts",headers:{"x-studio-id":e},query:{couponIds:t}})}};var Be=class{static getFunds(e){return s(o,{method:"GET",url:"/features/donations",headers:{"x-studio-id":e}})}static createFund(e,t){return s(o,{method:"POST",url:"/features/donations",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getServiceAgreement(e){return s(o,{method:"GET",url:"/features/donations/service-agreement",headers:{"x-studio-id":e}})}static createServiceAgreement(e,t){return s(o,{method:"POST",url:"/features/donations/service-agreement",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getFundDetails(e,t){return s(o,{method:"GET",url:"/features/donations/{fundId}",path:{fundId:t},headers:{"x-studio-id":e}})}static updateFund(e,t,r){return s(o,{method:"PUT",url:"/features/donations/{fundId}",path:{fundId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static deleteFund(e,t){return s(o,{method:"DELETE",url:"/features/donations/{fundId}",path:{fundId:t},headers:{"x-studio-id":e}})}static getFund(e,t){return s(o,{method:"GET",url:"/features/donations/{fundId}/detail",path:{fundId:t},headers:{"x-studio-id":e}})}static duplicateFund(e,t,r){return s(o,{method:"POST",url:"/features/donations/{fundId}/duplicate",path:{fundId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static sendEmail(e,t,r){return s(o,{method:"POST",url:"/features/donations/{fundId}/send-mail",path:{fundId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}};var Ne=class{static getGiftCards(e,t){return s(o,{method:"GET",url:"/features/gift-cards",headers:{"x-studio-id":e},query:{isVoid:t}})}static createGiftCard(e,t){return s(o,{method:"POST",url:"/features/gift-cards",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getTransactions(e,t){return s(o,{method:"GET",url:"/features/gift-cards/{giftCardId}/transactions",path:{giftCardId:t},headers:{"x-studio-id":e}})}static getGiftCard(e,t){return s(o,{method:"GET",url:"/features/gift-cards/{giftCardId}",path:{giftCardId:t},headers:{"x-studio-id":e}})}static updateGiftCard(e,t,r){return s(o,{method:"PUT",url:"/features/gift-cards/{giftCardId}",path:{giftCardId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static deleteGiftCard(e,t){return s(o,{method:"DELETE",url:"/features/gift-cards/{giftCardId}",path:{giftCardId:t},headers:{"x-studio-id":e}})}static createGiftCardsBulk(e,t){return s(o,{method:"POST",url:"/features/gift-cards/bulk-create",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}};var Ue=class{static getGoldenTicketList(e,t){return s(o,{method:"GET",url:"/features/golden-tickets",headers:{"x-studio-id":e},query:{showId:t}})}static createGoldenTicket(e,t){return s(o,{method:"POST",url:"/features/golden-tickets",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getShowsForGoldenTickets(e){return s(o,{method:"GET",url:"/features/golden-tickets/shows",headers:{"x-studio-id":e}})}static getSectionDetails(e,t){return s(o,{method:"GET",url:"/features/golden-tickets/{showId}/section-detail",path:{showId:t},headers:{"x-studio-id":e}})}static getRowDetails(e,t,r){return s(o,{method:"GET",url:"/features/golden-tickets/{showId}/row-detail",path:{showId:t},headers:{"x-studio-id":e},query:{section:r}})}static getSeatDetails(e,t,r,i){return s(o,{method:"GET",url:"/features/golden-tickets/{showId}/seat-detail",path:{showId:t},headers:{"x-studio-id":e},query:{section:r,row:i}})}static updateGoldenTicket(e,t,r){return s(o,{method:"PUT",url:"/features/golden-tickets/{ticketId}",path:{ticketId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static deleteGoldenTicket(e,t){return s(o,{method:"DELETE",url:"/features/golden-tickets/{ticketId}",path:{ticketId:t},headers:{"x-studio-id":e}})}};var Le=class{static getLandingPage(e){return s(o,{method:"GET",url:"/features/landing-page",headers:{"x-studio-id":e}})}static updateLandingPageSettings(e,t){return s(o,{method:"PUT",url:"/features/landing-page",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getAlbums(e){return s(o,{method:"GET",url:"/features/landing-page/albums",headers:{"x-studio-id":e}})}static getAlbumImages(e,t){return s(o,{method:"GET",url:"/features/landing-page/{albumId}/images",path:{albumId:t},headers:{"x-studio-id":e}})}static deleteAlbumImages(e,t,r){return s(o,{method:"DELETE",url:"/features/landing-page/{albumId}/images",path:{albumId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static createAlbum(e,t){return s(o,{method:"POST",url:"/features/landing-page/album",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateImageOrder(e,t){return s(o,{method:"POST",url:"/features/landing-page/reorder-images",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static startImageUpload(e,t,r){return s(o,{method:"POST",url:"/features/landing-page/{albumId}/start-image-upload",path:{albumId:e},headers:{"x-studio-id":t},body:r,mediaType:"application/json"})}static updateImageUrl(e,t,r){return s(o,{method:"POST",url:"/features/landing-page/{albumId}/update-image-url",path:{albumId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static updateLandingPageSettings1(e,t){return s(o,{method:"PUT",url:"/features/landing-page/settings",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateAlbum(e,t,r){return s(o,{method:"PUT",url:"/features/landing-page/{albumId}",path:{albumId:e},headers:{"x-studio-id":t},body:r,mediaType:"application/json"})}static deleteAlbum(e,t){return s(o,{method:"DELETE",url:"/features/landing-page/{albumId}",path:{albumId:e},headers:{"x-studio-id":t}})}};var Fe=class{static getPriorityCodes(e,t,r){return s(o,{method:"GET",url:"/features/priority/codes",headers:{"x-studio-id":e},query:{status:t,searchQuery:r}})}static getHiddenPriorityCodes(e){return s(o,{method:"GET",url:"/features/priority/hidden-codes",headers:{"x-studio-id":e}})}static getShowAndGroup(e){return s(o,{method:"GET",url:"/features/priority/shows-and-groups",headers:{"x-studio-id":e}})}static getSettingsAndWaves(e){return s(o,{method:"GET",url:"/features/priority/settings-and-waves",headers:{"x-studio-id":e}})}static getCodeUsageDetails(e,t){return s(o,{method:"GET",url:"/features/priority/code-usage/{codeId}",path:{codeId:t},headers:{"x-studio-id":e}})}static createCodes(e,t){return s(o,{method:"POST",url:"/features/priority/create-code",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateCodes(e,t){return s(o,{method:"PUT",url:"/features/priority/bulk-edit",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateCode(e,t){return s(o,{method:"PUT",url:"/features/priority/edit-code",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static resendMail(e,t){return s(o,{method:"PUT",url:"/features/priority/resend-mail",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static expireHiddenCodes(e,t){return s(o,{method:"PUT",url:"/features/priority/expire-hidden-codes",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static deleteCodes(e,t){return s(o,{method:"DELETE",url:"/features/priority/delete-codes",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}};var He=class{static getProducts(e){return s(o,{method:"GET",url:"/features/products",headers:{"x-studio-id":e}})}static createProduct(e,t){return s(o,{method:"POST",url:"/features/products",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getIconsShowGroups(e){return s(o,{method:"GET",url:"/features/products/icons-show-groups",headers:{"x-studio-id":e}})}static getProductSales(e,t){return s(o,{method:"GET",url:"/features/products/{productId}/sales",path:{productId:t},headers:{"x-studio-id":e}})}static getServiceAgreement(e){return s(o,{method:"GET",url:"/features/products/service-agreement",headers:{"x-studio-id":e}})}static createServiceAgreement(e,t){return s(o,{method:"POST",url:"/features/products/service-agreement",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getProductDetails(e,t){return s(o,{method:"GET",url:"/features/products/{productId}",path:{productId:t},headers:{"x-studio-id":e}})}static updateProduct(e,t,r){return s(o,{method:"PUT",url:"/features/products/{productId}",path:{productId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static deleteProduct(e,t){return s(o,{method:"DELETE",url:"/features/products/{productId}",path:{productId:t},headers:{"x-studio-id":e}})}static getProductRecipients(e,t){return s(o,{method:"GET",url:"/features/products/{productId}/recipients",path:{productId:t},headers:{"x-studio-id":e}})}static getProductVariants(e){return s(o,{method:"GET",url:"/features/products/{productId}/variants",path:{productId:e}})}static startImageUpload(e,t){return s(o,{method:"POST",url:"/features/products/start-image-upload",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static createDuplicateProduct(e,t,r){return s(o,{method:"POST",url:"/features/products/{productId}/duplicate",path:{productId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static sendEmail(e,t,r){return s(o,{method:"POST",url:"/features/products/{productId}/send-mail",path:{productId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static createVariant(e,t,r){return s(o,{method:"POST",url:"/features/products/{productId}/create-variant",path:{productId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static updateImageUrl(e,t,r){return s(o,{method:"PUT",url:"/features/products/{productId}/update-image-url",path:{productId:e},headers:{"x-studio-id":t},body:r,mediaType:"application/json"})}static updateVariant(e,t,r){return s(o,{method:"PUT",url:"/features/products/{productId}/update-variant",path:{productId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static deleteProduct1(e,t){return s(o,{method:"DELETE",url:"/features/products/variant",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}};var $e=class{static getOrderFilters(e){return s(o,{method:"GET",url:"/order-lookup",headers:{"x-studio-id":e}})}static getOrderActions(e,t){return s(o,{method:"GET",url:"/order-lookup/{orderId}/order-actions",path:{orderId:t},headers:{"x-studio-id":e}})}static getOrderDetails(e,t){return s(o,{method:"GET",url:"/order-lookup/{orderId}/order-details",path:{orderId:t},headers:{"x-studio-id":e}})}static getOrderLedger(e,t){return s(o,{method:"GET",url:"/order-lookup/{orderId}/order-ledger",path:{orderId:t},headers:{"x-studio-id":e}})}static getOrderTicketDetails(e,t){return s(o,{method:"GET",url:"/order-lookup/{orderId}/order-ticket-details",path:{orderId:t},headers:{"x-studio-id":e}})}static getOrderSeatDetails(e,t){return s(o,{method:"GET",url:"/order-lookup/{orderId}/order-seats",path:{orderId:t},headers:{"x-studio-id":e}})}static getShowDetails(e,t){return s(o,{method:"GET",url:"/order-lookup/{orderId}/shows-list",path:{orderId:t},headers:{"x-studio-id":e}})}static exchangeSelectedSeats(e,t){return s(o,{method:"GET",url:"/order-lookup/ticket-exchange-selected-seats",headers:{"x-studio-id":e},query:{shopperGuid:t}})}static getReleaseSeatDetails(e,t){return s(o,{method:"GET",url:"/order-lookup/{orderId}/release-seat",path:{orderId:t},headers:{"x-studio-id":e}})}static releaseSeat(e,t,r){return s(o,{method:"POST",url:"/order-lookup/{orderId}/release-seat",path:{orderId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static getBlockedSeatsDetails(e,t){return s(o,{method:"GET",url:"/order-lookup/{showId}/blocked-seats",path:{showId:t},headers:{"x-studio-id":e}})}static getOrderListDetails(e,t){return s(o,{method:"POST",url:"/order-lookup/order-list",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static toggleTier(e){return s(o,{method:"POST",url:"/order-lookup/toggle-tier",body:e,mediaType:"application/json"})}static getShowAndTier(e,t){return s(o,{method:"POST",url:"/order-lookup/show-tier",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static emailBuyers(e,t){return s(o,{method:"POST",url:"/order-lookup/email-buyers",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static saveNote(e,t){return s(o,{method:"POST",url:"/order-lookup/save-note",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static recalculateOrder(e,t){return s(o,{method:"POST",url:"/order-lookup/recalculate-order",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static cancelExchangeTicket(e,t){return s(o,{method:"POST",url:"/order-lookup/cancel-exchange-ticket",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static cancelAllExchangeTickets(e){return s(o,{method:"POST",url:"/order-lookup/cancel-all-exchange-tickets",headers:{"x-studio-id":e}})}static resetPrimaryVideoStream(e,t){return s(o,{method:"POST",url:"/order-lookup/{orderId}/reset-primary-video-stream",path:{orderId:e},headers:{"x-studio-id":t}})}static executeSeatExchange(e,t,r){return s(o,{method:"POST",url:"/order-lookup/{orderId}/execute-seat-exchange",path:{orderId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static modifyOrderTickets(e,t,r){return s(o,{method:"POST",url:"/order-lookup/{orderId}/order-ticket",path:{orderId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static updateEmailId(e,t,r){return s(o,{method:"PUT",url:"/order-lookup/{orderId}/update-email",path:{orderId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static toggleModifyTierStatus(e,t,r){return s(o,{method:"PUT",url:"/order-lookup/{orderId}/toggle-modify-tier",path:{orderId:e},headers:{"x-studio-id":t},body:r,mediaType:"application/json"})}static addSeatsToSession(e,t){return s(o,{method:"PUT",url:"/order-lookup/add-seat-to-session",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}};var We=class{static getPatronManifestReport(e){return s(o,{method:"GET",url:"/reports/patron-manifest",headers:{"x-studio-id":e}})}static getPatronManifestByShow(e,t){return s(o,{method:"GET",url:"/reports/patron-manifest/{showId}",path:{showId:t},headers:{"x-studio-id":e}})}static getTicketSalesReport(e){return s(o,{method:"GET",url:"/reports/ticket-sales",headers:{"x-studio-id":e}})}static getSoldSeatsByShow(e,t){return s(o,{method:"GET",url:"/reports/ticket-sales/{showId}/sold",path:{showId:e},headers:{"x-studio-id":t}})}static getUnsoldSeatsByShow(e,t){return s(o,{method:"GET",url:"/reports/ticket-sales/{showId}/unsold",path:{showId:e},headers:{"x-studio-id":t}})}static getSalesByTierReport(e){return s(o,{method:"GET",url:"/reports/sales-by-tier",headers:{"x-studio-id":e}})}static getShowSeatSales(e,t,r,i){return s(o,{method:"GET",url:"/reports/sales-by-tier/{showId}/seat-sales",path:{showId:t},headers:{"x-studio-id":e},query:{price:r,name:i}})}static getRevenueByShow(e,t){return s(o,{method:"POST",url:"/reports/revenue-by-show",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getCreditedPerformerReport(e,t,r){return s(o,{method:"GET",url:"/reports/credited-performers",headers:{"x-studio-id":e},query:{showId:t,orderId:r}})}static getCreditedPerformerDetails(e,t){return s(o,{method:"POST",url:"/reports/credited-performer-details",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getCreditedPerformerByOrder(e,t){return s(o,{method:"GET",url:"/reports/credited-performer/{orderId}",path:{orderId:t},headers:{"x-studio-id":e}})}static productSalesReport(e,t){return s(o,{method:"POST",url:"/reports/products",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getDonationsReport(e,t){return s(o,{method:"POST",url:"/reports/donations",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getCheckoutResponsesShow(e){return s(o,{method:"GET",url:"/reports/checkout-responses-show",headers:{"x-studio-id":e}})}static getCheckoutResponsesReport(e,t){return s(o,{method:"POST",url:"/reports/checkout-responses",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getScannedTicketsReport(e){return s(o,{method:"GET",url:"/reports/scanned-tickets",headers:{"x-studio-id":e}})}static getTaxReport(e,t){return s(o,{method:"POST",url:"/reports/tax-by-month",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static getCheckoutResponsesReport1(e,t){return s(o,{method:"GET",url:"/reports/checkout-response-details",headers:{"x-studio-id":e},query:{showId:t}})}static getProductSalesReport(e){return s(o,{method:"GET",url:"/reports/product-sale-details",headers:{"x-studio-id":e}})}static getDonationsReport1(e){return s(o,{method:"GET",url:"/reports/donation-details",headers:{"x-studio-id":e}})}static getUnsoldSeatsByShow1(e,t){return s(o,{method:"PUT",url:"/reports/{showId}/reset-ticket-scanning",path:{showId:e},headers:{"x-studio-id":t}})}};var Me=class{static getStudioSettings(e){return s(o,{method:"GET",url:"/settings",headers:{"x-studio-id":e}})}static getNotificationSettings(e){return s(o,{method:"GET",url:"/settings/notifications",headers:{"x-studio-id":e}})}static getPosSettings(e){return s(o,{method:"GET",url:"/settings/pos-settings",headers:{"x-studio-id":e}})}static getPolicies(e){return s(o,{method:"GET",url:"/settings/policies",headers:{"x-studio-id":e}})}static getMessages(e){return s(o,{method:"GET",url:"/settings/messages",headers:{"x-studio-id":e}})}static getUsers(e){return s(o,{method:"GET",url:"/settings/users",headers:{"x-studio-id":e}})}static getUsersLoginLevels(e){return s(o,{method:"GET",url:"/settings/login-levels",headers:{"x-studio-id":e}})}static getUsersLoginDetails(e,t){return s(o,{method:"GET",url:"/settings/{loginId}/login-details",headers:{"x-studio-id":e},query:{loginId:t}})}static createUserLogin(e,t){return s(o,{method:"POST",url:"/settings/user-login",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateStudioSettings(e,t){return s(o,{method:"PUT",url:"/settings/update-studio-settings",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateNotificationSettings(e,t){return s(o,{method:"PUT",url:"/settings/update-notification-settings",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updatePosSettings(e,t){return s(o,{method:"PUT",url:"/settings/update-pos-settings",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updatePolicySettings(e,t){return s(o,{method:"PUT",url:"/settings/update-policy-settings",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateMessageSettings(e,t){return s(o,{method:"PUT",url:"/settings/update-message",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updateUserLogin(e,t,r){return s(o,{method:"PUT",url:"/settings/{loginId}/user-login",headers:{"x-studio-id":e},query:{loginId:t},body:r,mediaType:"application/json"})}static deleteUserLogin(e,t){return s(o,{method:"DELETE",url:"/settings/{loginId}",headers:{"x-studio-id":e},query:{loginId:t}})}};var Je=class{static getShowList(e){return s(o,{method:"GET",url:"/shows",headers:{"x-studio-id":e}})}static getRentedShowList(e){return s(o,{method:"GET",url:"/shows/rented-shows",headers:{"x-studio-id":e}})}static getShowDetail(e,t){return s(o,{method:"GET",url:"/shows/{showId}",path:{showId:t},headers:{"x-studio-id":e}})}static getShowStatDetail(e,t){return s(o,{method:"GET",url:"/shows/{showId}/stats",path:{showId:t},headers:{"x-studio-id":e}})}static getShowPricingDetail(e,t){return s(o,{method:"GET",url:"/shows/{showId}/pricing",path:{showId:t},headers:{"x-studio-id":e}})}static getShowEmailBuyers(e,t){return s(o,{method:"GET",url:"/shows/{showId}/email-buyers",path:{showId:t},headers:{"x-studio-id":e}})}static emailBuyers(e,t,r){return s(o,{method:"POST",url:"/shows/{showId}/email-buyers",path:{showId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static getShowChartPreview(e,t){return s(o,{method:"GET",url:"/shows/{showId}/chart-preview",path:{showId:t},headers:{"x-studio-id":e}})}static getShowTicketSections(e,t){return s(o,{method:"GET",url:"/shows/{showId}/print-ticket",path:{showId:t},headers:{"x-studio-id":e}})}static getShowVideoStreams(e,t){return s(o,{method:"GET",url:"/shows/{showId}/stream",path:{showId:t},headers:{"x-studio-id":e}})}static getShowVirtualStream(e){return s(o,{method:"GET",url:"/shows/{guid}/virtual-stream",path:{guid:e}})}static getMigrateTicketDetails(e,t){return s(o,{method:"GET",url:"/shows/{showId}/migrate-tickets",path:{showId:t},headers:{"x-studio-id":e}})}static getDigitalAssets(e,t){return s(o,{method:"GET",url:"/shows/{showId}/digital-assets",path:{showId:t},headers:{"x-studio-id":e}})}static getAssetLog(e,t){return s(o,{method:"GET",url:"/shows/{assetId}/asset-log",path:{assetId:t},headers:{"x-studio-id":e}})}static getOrderSeats(e,t){return s(o,{method:"GET",url:"/shows/{orderId}/order-seats",path:{orderId:t},headers:{"x-studio-id":e}})}static getShowChartReviewStatus(e,t){return s(o,{method:"GET",url:"/shows/{showId}/chart-review-status",path:{showId:t},headers:{"x-studio-id":e}})}static getShowSectionDetail(e,t){return s(o,{method:"GET",url:"/shows/{showId}/{sectionId}/section-detail",path:{showId:e,sectionId:t}})}static getShowPerformersDetail(e,t){return s(o,{method:"POST",url:"/shows/performers/list",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static addPerformers(e,t){return s(o,{method:"POST",url:"/shows/performers/create",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static generateChartReview(e,t,r){return s(o,{method:"POST",url:"/shows/{showId}/chart-review",path:{showId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static addYouTubeVideo(e,t){return s(o,{method:"POST",url:"/shows/{showId}/add-youtube-video",path:{showId:e},body:t,mediaType:"application/json"})}static approveShow(e,t,r){return s(o,{method:"POST",url:"/shows/{showId}/approve-show",path:{showId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static migrateTickets(e){return s(o,{method:"PUT",url:"/shows/migrate-ticket",body:e,mediaType:"application/json"})}static editShow(e,t){return s(o,{method:"PUT",url:"/shows/edit-show",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static updatePerformers(e,t){return s(o,{method:"PUT",url:"/shows/performers/toggle-primary",headers:{"x-studio-id":e},body:t,mediaType:"application/json"})}static stopSale(e,t,r){return s(o,{method:"PUT",url:"/shows/{showId}/stop-sale",path:{showId:t},headers:{"x-studio-id":e},body:r,mediaType:"application/json"})}static deletePerformer(e){return s(o,{method:"DELETE",url:"/shows/performers/remove-performer",body:e,mediaType:"application/json"})}static deleteAllPerformers(e){return s(o,{method:"DELETE",url:"/shows/{showId}/performers/remove-all",path:{showId:e}})}};var xt={};var St={account:ge,accounting:Ee,app:we,auth:xe,clienttoolsgeneratedemails:Se,clienttoolsparentletter:be,clienttoolspatrondatabase:Ie,clienttoolsseatassignmenttool:Pe,clienttoolsstripeonboarding:ve,clienttoolsthemebuilder:Oe,clienttoolsthemeslibrary:qe,clienttoolsticketinglink:ke,clienttoolsticketscanning:je,clienttoolsunapprovedorders:Ce,clienttoolswaitlist:Ge,dashboard:Re,featuresblockedseats:_e,featurescheckoutquestions:Ae,featuresdiscounts:De,featuresdonations:Be,featuresgiftcards:Ne,featuresgoldentickets:Ue,featureslandingpage:Le,featurespriority:Fe,featuresproducts:He,orderlookup:$e,reports:We,settings:Me,shows:Je};o.WITH_CREDENTIALS=!0;var lt={shopper:"https://api.drttix.com/shopper",scanner:"https://api.drttix.com/scanner-v3",portal:"https://api.staging.drttix.com/admin-portal"},bt=!1;function It(){var a;if(bt)return;bt=!0;let e=typeof globalThis<"u"?globalThis:{},t=(a=e.DRT_API_BASE_URL)!==null&&a!==void 0?a:null,r=e.DRT_API_LOCAL===!0||e.DRT_API_LOCAL==="true",i=t||(r?"http://localhost:3000":null);u.BASE=i?`${i}/shopper`:lt.shopper,T.BASE=i?`${i}/scanner-v3`:lt.scanner,o.BASE=i?`${i}/portal`:lt.portal}var pt=!1,ht=null;function Pt(a){if(!a.shopperGuid||!a.accountId||!a.apiKey)throw new Error("DRT SDK init requires shopperGuid, accountId, and apiKey");ht=a;let e={shopperguid:a.shopperGuid,accountid:a.accountId,apikey:a.apiKey};u.HEADERS=e,T.HEADERS=e,o.HEADERS=e,pt=!0}function vt(){return pt}function Ot(){return ht}function qt(){ht=null,pt=!1,u.HEADERS=void 0,T.HEADERS=void 0,o.HEADERS=void 0}var rd={shopper:yt,scanner:Et,portal:St,init:Pt,isReady:vt,getConfig:Ot,reset:qt};It();export{rd as DRT,xt as PortalTypes,gt as ScannerTypes,ft as ShopperTypes};
@@ -1,3 +1,4 @@
1
+ import { init, isReady, getConfig, reset } from "./src/functions/sdkConfig";
1
2
  export { ShopperTypes } from "./src/definitions/shopper";
2
3
  export { ScannerTypes } from "./src/definitions/scanner";
3
4
  export { PortalTypes } from "./src/definitions/portal";
@@ -52,5 +53,9 @@ export declare const DRT: {
52
53
  settings: typeof import("./src/generated/portal").SettingsService;
53
54
  shows: typeof import("./src/generated/portal").ShowsService;
54
55
  };
56
+ init: typeof init;
57
+ isReady: typeof isReady;
58
+ getConfig: typeof getConfig;
59
+ reset: typeof reset;
55
60
  };
56
61
  export type DRT = typeof DRT;
package/dist/cjs/index.js CHANGED
@@ -6,6 +6,7 @@ const shopper_1 = require("./src/definitions/shopper");
6
6
  const scanner_1 = require("./src/definitions/scanner");
7
7
  const portal_1 = require("./src/definitions/portal");
8
8
  const setBaseURL_1 = require("./src/functions/setBaseURL");
9
+ const sdkConfig_1 = require("./src/functions/sdkConfig");
9
10
  var shopper_2 = require("./src/definitions/shopper");
10
11
  Object.defineProperty(exports, "ShopperTypes", { enumerable: true, get: function () { return shopper_2.ShopperTypes; } });
11
12
  var scanner_2 = require("./src/definitions/scanner");
@@ -16,5 +17,9 @@ exports.DRT = {
16
17
  shopper: shopper_1.shopper,
17
18
  scanner: scanner_1.scanner,
18
19
  portal: portal_1.portal,
20
+ init: sdkConfig_1.init,
21
+ isReady: sdkConfig_1.isReady,
22
+ getConfig: sdkConfig_1.getConfig,
23
+ reset: sdkConfig_1.reset,
19
24
  };
20
25
  (0, setBaseURL_1.setBaseUrlsOnce)();
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '',
6
- VERSION: '20260320.2',
6
+ VERSION: '20260326.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -132,7 +132,9 @@ const getHeaders = async (config, options) => {
132
132
  (0, exports.resolve)(options, config.PASSWORD),
133
133
  (0, exports.resolve)(options, config.HEADERS),
134
134
  ]);
135
- const headers = Object.entries(Object.assign(Object.assign({ Accept: "application/json" }, additionalHeaders), options.headers))
135
+ // Filter out undefined/null values from options.headers first
136
+ const optionsHeaders = Object.fromEntries(Object.entries(options.headers || {}).filter(([_, value]) => (0, exports.isDefined)(value)));
137
+ const headers = Object.entries(Object.assign(Object.assign({ Accept: "application/json" }, optionsHeaders), additionalHeaders))
136
138
  .filter(([_, value]) => (0, exports.isDefined)(value))
137
139
  .reduce((headers, [key, value]) => (Object.assign(Object.assign({}, headers), { [key]: String(value) })), {});
138
140
  if ((0, exports.isStringWithValue)(token)) {
@@ -8,10 +8,11 @@ export declare class AccountService {
8
8
  /**
9
9
  * Fetch the portal object details
10
10
  * To fetch the portal object details
11
+ * @param xStudioId
11
12
  * @returns MappedPortalObjectPermission Account created successfully
12
13
  * @throws ApiError
13
14
  */
14
- static getPortalObject(): CancelablePromise<Array<MappedPortalObjectPermission>>;
15
+ static getPortalObject(xStudioId: string): CancelablePromise<Array<MappedPortalObjectPermission>>;
15
16
  /**
16
17
  * Creating the account
17
18
  * To create account and update the permissions
@@ -24,12 +25,13 @@ export declare class AccountService {
24
25
  /**
25
26
  * Permissions to be updated
26
27
  * To update the permissions of the user
28
+ * @param xStudioId
27
29
  * @param id The ID of the user
28
30
  * @param requestBody Permissions to be updated
29
31
  * @returns SuccessResponse Permission updated successfully
30
32
  * @throws ApiError
31
33
  */
32
- static updatePermission(id: string, requestBody: Array<PortalObjectRequestDto>): CancelablePromise<SuccessResponse>;
34
+ static updatePermission(xStudioId: string, id: string, requestBody: Array<PortalObjectRequestDto>): CancelablePromise<SuccessResponse>;
33
35
  /**
34
36
  * Delete user
35
37
  * To delete the user
@@ -47,4 +49,12 @@ export declare class AccountService {
47
49
  * @throws ApiError
48
50
  */
49
51
  static renewPolicy(xStudioId: string, policyId: string): CancelablePromise<SuccessResponse>;
52
+ /**
53
+ * Clear user permissions cache
54
+ * To clear the cached permissions for a specific studio login
55
+ * @param studioLoginId The studio login ID to clear cache for
56
+ * @returns SuccessResponse Cache cleared successfully
57
+ * @throws ApiError
58
+ */
59
+ static clearPermissionsCache(studioLoginId: string): CancelablePromise<SuccessResponse>;
50
60
  }
@@ -7,13 +7,17 @@ class AccountService {
7
7
  /**
8
8
  * Fetch the portal object details
9
9
  * To fetch the portal object details
10
+ * @param xStudioId
10
11
  * @returns MappedPortalObjectPermission Account created successfully
11
12
  * @throws ApiError
12
13
  */
13
- static getPortalObject() {
14
+ static getPortalObject(xStudioId) {
14
15
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
15
16
  method: 'GET',
16
17
  url: '/account/permission',
18
+ headers: {
19
+ 'x-studio-id': xStudioId,
20
+ },
17
21
  });
18
22
  }
19
23
  /**
@@ -38,18 +42,22 @@ class AccountService {
38
42
  /**
39
43
  * Permissions to be updated
40
44
  * To update the permissions of the user
45
+ * @param xStudioId
41
46
  * @param id The ID of the user
42
47
  * @param requestBody Permissions to be updated
43
48
  * @returns SuccessResponse Permission updated successfully
44
49
  * @throws ApiError
45
50
  */
46
- static updatePermission(id, requestBody) {
51
+ static updatePermission(xStudioId, id, requestBody) {
47
52
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
48
53
  method: 'PUT',
49
54
  url: '/account/{id}',
50
55
  path: {
51
56
  'id': id,
52
57
  },
58
+ headers: {
59
+ 'x-studio-id': xStudioId,
60
+ },
53
61
  body: requestBody,
54
62
  mediaType: 'application/json',
55
63
  });
@@ -90,5 +98,21 @@ class AccountService {
90
98
  },
91
99
  });
92
100
  }
101
+ /**
102
+ * Clear user permissions cache
103
+ * To clear the cached permissions for a specific studio login
104
+ * @param studioLoginId The studio login ID to clear cache for
105
+ * @returns SuccessResponse Cache cleared successfully
106
+ * @throws ApiError
107
+ */
108
+ static clearPermissionsCache(studioLoginId) {
109
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
110
+ method: 'POST',
111
+ url: '/account/cache',
112
+ query: {
113
+ 'studio_login_id': studioLoginId,
114
+ },
115
+ });
116
+ }
93
117
  }
94
118
  exports.AccountService = AccountService;
@@ -37,10 +37,11 @@ export declare class AuthService {
37
37
  /**
38
38
  * Logging out the user
39
39
  * Logging out the user
40
+ * @param xStudioId
40
41
  * @returns SuccessResponse Logout successful
41
42
  * @throws ApiError
42
43
  */
43
- static logout(): CancelablePromise<SuccessResponse>;
44
+ static logout(xStudioId: string): CancelablePromise<SuccessResponse>;
44
45
  /**
45
46
  * Change Password
46
47
  * Change the user password
@@ -64,13 +64,17 @@ class AuthService {
64
64
  /**
65
65
  * Logging out the user
66
66
  * Logging out the user
67
+ * @param xStudioId
67
68
  * @returns SuccessResponse Logout successful
68
69
  * @throws ApiError
69
70
  */
70
- static logout() {
71
+ static logout(xStudioId) {
71
72
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
72
73
  method: 'POST',
73
74
  url: '/auth/logout',
75
+ headers: {
76
+ 'x-studio-id': xStudioId,
77
+ },
74
78
  });
75
79
  }
76
80
  /**
@@ -60,28 +60,29 @@ export declare class FeaturesBlockedSeatsService {
60
60
  /**
61
61
  * Fetch the selected seats
62
62
  * Fetch the selected seats
63
+ * @param xStudioId
63
64
  * @returns BlockedSeatDetailResponseDto Selected seats fetched successfully
64
65
  * @throws ApiError
65
66
  */
66
- static getSelectedSeats(): CancelablePromise<Array<BlockedSeatDetailResponseDto>>;
67
+ static getSelectedSeats(xStudioId: string): CancelablePromise<Array<BlockedSeatDetailResponseDto>>;
67
68
  /**
68
69
  * Initialize the seat engine for a show
69
70
  * Initialize the seat engine for a show
70
- * @param showId The ID of the show
71
71
  * @param xStudioId The ID of the studio
72
+ * @param showId The ID of the show
72
73
  * @returns SuccessResponse Show initialized successfully
73
74
  * @throws ApiError
74
75
  */
75
- static initializeSeatEngine(showId: string, xStudioId: string): CancelablePromise<SuccessResponse>;
76
+ static initializeSeatEngine(xStudioId: string, showId: string): CancelablePromise<SuccessResponse>;
76
77
  /**
77
78
  * Fetch the seat engine occupancy for a show
78
79
  * Fetch the seat engine occupancy for a show
79
- * @param showId The ID of the show
80
80
  * @param xStudioId The ID of the studio
81
+ * @param showId The ID of the show
81
82
  * @returns any Show occupancy fetched successfully
82
83
  * @throws ApiError
83
84
  */
84
- static getSeatEngineOccupancy(showId: string, xStudioId: string): CancelablePromise<any>;
85
+ static getSeatEngineOccupancy(xStudioId: string, showId: string): CancelablePromise<any>;
85
86
  /**
86
87
  * Check the selected seats against show
87
88
  * Check the selected seats against show
@@ -214,17 +215,19 @@ export declare class FeaturesBlockedSeatsService {
214
215
  /**
215
216
  * Release all seats
216
217
  * Release all seats
218
+ * @param xStudioId
217
219
  * @returns SuccessResponse Seats released successfully
218
220
  * @throws ApiError
219
221
  */
220
- static releaseAllSeats(): CancelablePromise<SuccessResponse>;
222
+ static releaseAllSeats(xStudioId: string): CancelablePromise<SuccessResponse>;
221
223
  /**
222
224
  * Toggle the seat in cart ticket
223
225
  * Toggle the seat in cart ticket
226
+ * @param xStudioId
224
227
  * @param showId The ID of the show
225
228
  * @param seatId The ID of the seat
226
229
  * @returns CartToggleTickerResponseDto Seat toggled successfully
227
230
  * @throws ApiError
228
231
  */
229
- static toggleSeatInCartTicket(showId: string, seatId: string): CancelablePromise<CartToggleTickerResponseDto>;
232
+ static toggleSeatInCartTicket(xStudioId: string, showId: string, seatId: string): CancelablePromise<CartToggleTickerResponseDto>;
230
233
  }
@@ -79,24 +79,28 @@ class FeaturesBlockedSeatsService {
79
79
  /**
80
80
  * Fetch the selected seats
81
81
  * Fetch the selected seats
82
+ * @param xStudioId
82
83
  * @returns BlockedSeatDetailResponseDto Selected seats fetched successfully
83
84
  * @throws ApiError
84
85
  */
85
- static getSelectedSeats() {
86
+ static getSelectedSeats(xStudioId) {
86
87
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
87
88
  method: 'GET',
88
89
  url: '/features/blocked-seats/selected-seats',
90
+ headers: {
91
+ 'x-studio-id': xStudioId,
92
+ },
89
93
  });
90
94
  }
91
95
  /**
92
96
  * Initialize the seat engine for a show
93
97
  * Initialize the seat engine for a show
94
- * @param showId The ID of the show
95
98
  * @param xStudioId The ID of the studio
99
+ * @param showId The ID of the show
96
100
  * @returns SuccessResponse Show initialized successfully
97
101
  * @throws ApiError
98
102
  */
99
- static initializeSeatEngine(showId, xStudioId) {
103
+ static initializeSeatEngine(xStudioId, showId) {
100
104
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
101
105
  method: 'GET',
102
106
  url: '/features/blocked-seats/{showId}/initialize-seat-engine',
@@ -111,12 +115,12 @@ class FeaturesBlockedSeatsService {
111
115
  /**
112
116
  * Fetch the seat engine occupancy for a show
113
117
  * Fetch the seat engine occupancy for a show
114
- * @param showId The ID of the show
115
118
  * @param xStudioId The ID of the studio
119
+ * @param showId The ID of the show
116
120
  * @returns any Show occupancy fetched successfully
117
121
  * @throws ApiError
118
122
  */
119
- static getSeatEngineOccupancy(showId, xStudioId) {
123
+ static getSeatEngineOccupancy(xStudioId, showId) {
120
124
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
121
125
  method: 'GET',
122
126
  url: '/features/blocked-seats/{showId}/occupancy',
@@ -412,24 +416,29 @@ class FeaturesBlockedSeatsService {
412
416
  /**
413
417
  * Release all seats
414
418
  * Release all seats
419
+ * @param xStudioId
415
420
  * @returns SuccessResponse Seats released successfully
416
421
  * @throws ApiError
417
422
  */
418
- static releaseAllSeats() {
423
+ static releaseAllSeats(xStudioId) {
419
424
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
420
425
  method: 'PUT',
421
426
  url: '/features/blocked-seats/release-all-seats',
427
+ headers: {
428
+ 'x-studio-id': xStudioId,
429
+ },
422
430
  });
423
431
  }
424
432
  /**
425
433
  * Toggle the seat in cart ticket
426
434
  * Toggle the seat in cart ticket
435
+ * @param xStudioId
427
436
  * @param showId The ID of the show
428
437
  * @param seatId The ID of the seat
429
438
  * @returns CartToggleTickerResponseDto Seat toggled successfully
430
439
  * @throws ApiError
431
440
  */
432
- static toggleSeatInCartTicket(showId, seatId) {
441
+ static toggleSeatInCartTicket(xStudioId, showId, seatId) {
433
442
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
434
443
  method: 'PUT',
435
444
  url: '/features/blocked-seats/{showId}/{seatId}/toggle-cart-ticket',
@@ -437,6 +446,9 @@ class FeaturesBlockedSeatsService {
437
446
  'showId': showId,
438
447
  'seatId': seatId,
439
448
  },
449
+ headers: {
450
+ 'x-studio-id': xStudioId,
451
+ },
440
452
  });
441
453
  }
442
454
  }