PageSourceSearch

https://app.textaurant.app/_next/static/chunks/pages/dashboard/api-docs-1afc999d64039cb1.js

js textaurant.app collected 2026-10-04 07:41:27 UTC 6,920 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6999],{16006:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let a=r(64252)._(r(14232)),l=r(72936),s=[],n=[],o=!1;function i(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function u(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function i(){if(!s){let t=new d(e,r);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!o){let e=r.webpack&&1?r.webpack():r.modules;e&&n.push(t=>{for(let r of e)if(t.includes(r))return i()})}function u(e,t){let n;i(),(n=a.default.useContext(l.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(e=>{n(e)});let o=a.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),a.default.useMemo(()=>{var t;return o.loading||o.error?a.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:s.retry}):o.loaded?a.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return u.preload=()=>i(),u.displayName="LoadableComponent",a.default.forwardRef(u)}(i,e)}function c(e,t){let r=[];for(;e.length;){let a=e.pop();r.push(a(t))}return Promise.all(r).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(s).then(e,t)}),u.preloadReady=(e=[])=>new Promise(t=>{let r=()=>(o=!0,t());c(n,e).then(r,r)}),window.__NEXT_PRELOADREADY=u.preloadReady;let p=u},18847:(e,t,r)=>{e.exports=r(20705)},20705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={default:function(){return d},noSSR:function(){return i}};for(var l in a)Object.defineProperty(t,l,{enumerable:!0,get:a[l]});let s=r(64252);r(37876),r(14232);let n=s._(r(16006));function o(e){return{default:e?.default||e}}function i(e,t){return delete t.webpack,delete t.modules,e(t)}function d(e,t){let r=n.default,a={loading:({error:e,isLoading:t,pastDelay:r})=>null};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e});let l=(a={...a,...t}).loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated},delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?r({...a,loader:()=>null!=l?l().then(o):Promise.resolve(o(()=>null))}):(delete a.webpack,delete a.modules,i(r,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45798:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/api-docs",function(){return r(74906)}])},72936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}
1),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=r(64252)._(r(14232)).default.createContext(null)},74906:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var a=r(37876),l=r(14232),s=r(18847),n=r.n(s),o=r(48230),i=r.n(o);let d=n()(async()=>{let e=(await Promise.all([r.e(7184),r.e(2909),r.e(5978)]).then(r.bind(r,56523))).default;return await Promise.all([r.e(2799),r.e(2767)]).then(r.t.bind(r,72767,23)),e},{loadableGenerated:{webpack:()=>[72767]},ssr:!1});function u(){let[e,t]=(0,l.useState)("");return(0,l.useEffect)(()=>{t(`${window.location.origin}/api/public/v1/docs`)},[]),(0,a.jsxs)("div",{className:"min-h-screen bg-white",children:[(0,a.jsx)("div",{className:"bg-gradient-to-r from-blue-600 to-blue-800 text-white py-8 px-6",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,a.jsx)("h1",{className:"text-4xl font-bold mb-2",children:"Textaurant Public API Documentation"}),(0,a.jsx)("p",{className:"text-blue-100 text-lg",children:"Interactive API documentation for integrating with Toast, DoorDash, GrubHub, and more"}),(0,a.jsxs)("div",{className:"mt-4 flex gap-3 flex-wrap",children:[(0,a.jsx)("a",{href:"/api/public/v1/docs",target:"_blank",rel:"noopener noreferrer",className:"bg-white/20 hover:bg-white/30 backdrop-blur-sm px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:"Download OpenAPI Spec (JSON)"}),(0,a.jsx)(i(),{href:"/dashboard/public-api",className:"bg-white/20 hover:bg-white/30 backdrop-blur-sm px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:"Manage API Keys"}),(0,a.jsx)("a",{href:"/PUBLIC_API_GUIDE.md",target:"_blank",rel:"noopener noreferrer",className:"bg-white/20 hover:bg-white/30 backdrop-blur-sm px-4 py-2 rounded-lg text-sm font-medium transition-colors",children:"Integration Guide"})]})]})}),(0,a.jsx)("div",{className:"max-w-7xl mx-auto",children:e?(0,a.jsx)(d,{url:e,docExpansion:"list",defaultModelsExpandDepth:1,displayRequestDuration:!0,filter:!0,showExtensions:!0,showCommonExtensions:!0,tryItOutEnabled:!0}):(0,a.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"})})}),(0,a.jsx)("div",{className:"bg-gray-50 border-t border-gray-200 py-8 px-6 mt-12",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto text-center text-gray-600",children:[(0,a.jsxs)("p",{className:"text-sm",children:["Need help? Contact"," ",(0,a.jsx)("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"[email protected]"})]}),(0,a.jsx)("p",{className:"text-xs mt-2 text-gray-500",children:"All API requests are restaurant-scoped and require valid API keys with appropriate scopes."})]})})]})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=45798)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.