@intlayer/api 8.2.3 → 8.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/getIntlayerAPI/audit.cjs +2 -2
- package/dist/cjs/getIntlayerAPI/audit.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs +1 -1
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs.map +1 -1
- package/dist/esm/getIntlayerAPI/audit.mjs +2 -2
- package/dist/esm/getIntlayerAPI/audit.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs +1 -1
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs.map +1 -1
- package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts +2 -1
- package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts.map +1 -1
- package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts +69 -0
- package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/export.d.ts +2 -0
- package/dist/types/apps/backend/dist/types/types/project.types.d.ts +2 -1
- package/dist/types/apps/backend/dist/types/types/project.types.d.ts.map +1 -1
- package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts +59 -0
- package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts.map +1 -0
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +2 -1
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/audit.d.ts +23 -2
- package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +2 -2
- package/dist/types/getIntlayerAPI/newsletter.d.ts +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +1 -0
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +3 -1
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +1 -1
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts +14 -9
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +5 -2
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +7 -4
- package/dist/types/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`../fetcher.cjs`);let n=require(`@intlayer/config/built`);n=e.__toESM(n);const r=(e={},r)=>{let i=r?.editor?.backendURL??n.default?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/scan`;return{scanUrl:async(t,n={})=>{if(!t?.url)return;let{url:r,onMessage:i,onDone:o}=t,s=`${a}?${new URLSearchParams({url:r}).toString()}`,c=await fetch(s,{method:`GET`,headers:{Accept:`text/event-stream`,...e.headers,...n.headers},credentials:`include`,signal:n.signal});if(!c.ok){let e=`An error occurred`;try{let t=await c.json();e=JSON.stringify(t.error)??e}catch{try{let t=await c.text();t&&(e=t)}catch{}}throw Error(e)}let l=c.body?.getReader();if(!l)throw Error(`No reader available`);let u=new TextDecoder,d=``;for(;;){let{done:e,value:t}=await l.read();if(e)break;d+=u.decode(t,{stream:!0});let n=d.split(`
|
|
2
|
-
`);d=n.pop()??``;for(let e of n)if(e.startsWith(`data: `))try{let t=JSON.parse(e.slice(6));i?.(t)}catch{}}o?.()},startRecursiveAudit:async(n,r={})=>await t.fetcher(`${a}/recursive/start`,e,r,{method:`POST`,params:n}),getRecursiveAuditStatus:async(n,r={})=>await t.fetcher(`${a}/recursive/${n?.jobId}`,e,r,{method:`GET`})}};exports.getAuditAPI=r;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`../fetcher.cjs`);let n=require(`@intlayer/config/built`);n=e.__toESM(n);const r=(e={},r)=>{let i=r?.editor?.backendURL??n.default?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/scan`;return{discoverUrls:async(n,r={})=>await t.fetcher(`${a}/recursive/discover`,e,r,{method:`GET`,params:n}),scanUrl:async(t,n={})=>{if(!t?.url)return;let{url:r,onMessage:i,onDone:o}=t,s=`${a}?${new URLSearchParams({url:r}).toString()}`,c=await fetch(s,{method:`GET`,headers:{Accept:`text/event-stream`,...e.headers,...n.headers},credentials:`include`,signal:n.signal});if(!c.ok){let e=`An error occurred`;try{let t=await c.json();e=JSON.stringify(t.error)??e}catch{try{let t=await c.text();t&&(e=t)}catch{}}throw Error(e)}let l=c.body?.getReader();if(!l)throw Error(`No reader available`);let u=new TextDecoder,d=``;for(;;){let{done:e,value:t}=await l.read();if(e)break;d+=u.decode(t,{stream:!0});let n=d.split(`
|
|
2
|
+
`);d=n.pop()??``;for(let e of n)if(e.startsWith(`data: `))try{let t=JSON.parse(e.slice(6));i?.(t)}catch{}}o?.()},startRecursiveAudit:async(n,r={})=>await t.fetcher(`${a}/recursive/start`,e,r,{method:`POST`,params:n?.url?{url:n.url}:void 0,body:n?.urls===void 0?void 0:{urls:n.urls}}),getRecursiveAuditStatus:async(n,r={})=>await t.fetcher(`${a}/recursive/${n?.jobId}`,e,r,{method:`GET`}),cancelRecursiveAudit:async(n,r={})=>await t.fetcher(`${a}/recursive/${n?.jobId}/cancel`,e,r,{method:`POST`}),pauseRecursiveAudit:async(n,r={})=>await t.fetcher(`${a}/recursive/${n?.jobId}/pause`,e,r,{method:`POST`}),resumeRecursiveAudit:async(n,r={})=>await t.fetcher(`${a}/recursive/${n?.jobId}/resume`,e,r,{method:`POST`})}};exports.getAuditAPI=r;
|
|
3
3
|
//# sourceMappingURL=audit.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.cjs","names":["configuration","fetcher"],"sources":["../../../src/getIntlayerAPI/audit.ts"],"sourcesContent":["import type {\n AuditEvent,\n GetRecursiveAuditStatusResult,\n StartRecursiveAuditResult,\n} from '@intlayer/backend';\nimport configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\n\nexport type {\n AuditEvent,\n GetRecursiveAuditStatusResult,\n StartRecursiveAuditResult,\n};\n\nexport type ScanUrlBody = {\n url: string;\n onMessage?: (event: AuditEvent) => void;\n onDone?: () => void;\n};\n\nexport type StartRecursiveAuditBody = {\n url: string;\n};\n\nexport type GetRecursiveAuditStatusParams = {\n jobId: string;\n};\n\nexport const getAuditAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n) => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const AUDIT_API_ROUTE = `${backendURL}/api/scan`;\n\n /**\n * Streams a single-page SEO audit as Server-Sent Events.\n *\n * Usage:\n * ```ts\n * await audit.scanUrl({\n * url: 'https://example.com',\n * onMessage: (event) => console.log(event),\n * onDone: () => console.log('done'),\n * });\n * ```\n */\n const scanUrl = async (\n body?: ScanUrlBody,\n otherOptions: FetcherOptions = {}\n ) => {\n if (!body?.url) return;\n\n const { url, onMessage, onDone } = body;\n\n const params = new URLSearchParams({ url });\n const endpoint = `${AUDIT_API_ROUTE}?${params.toString()}`;\n\n const response = await fetch(endpoint, {\n method: 'GET',\n headers: {\n Accept: 'text/event-stream',\n ...authAPIOptions.headers,\n ...otherOptions.headers,\n },\n credentials: 'include',\n signal: otherOptions.signal,\n });\n\n if (!response.ok) {\n let errorMessage = 'An error occurred';\n try {\n const errorData = await response.json();\n errorMessage = JSON.stringify(errorData.error) ?? errorMessage;\n } catch {\n try {\n const errorText = await response.text();\n if (errorText) errorMessage = errorText;\n } catch {\n // ignore\n }\n }\n throw new Error(errorMessage);\n }\n\n const reader = response.body?.getReader();\n if (!reader) throw new Error('No reader available');\n\n const decoder = new TextDecoder();\n let buffer = '';\n\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n\n buffer += decoder.decode(value, { stream: true });\n const lines = buffer.split('\\n');\n buffer = lines.pop() ?? '';\n\n for (const line of lines) {\n if (line.startsWith('data: ')) {\n try {\n const event = JSON.parse(line.slice(6)) as AuditEvent;\n onMessage?.(event);\n } catch {\n // ignore
|
|
1
|
+
{"version":3,"file":"audit.cjs","names":["configuration","fetcher"],"sources":["../../../src/getIntlayerAPI/audit.ts"],"sourcesContent":["import type {\n AuditEvent,\n GetRecursiveAuditStatusResult,\n StartRecursiveAuditResult,\n} from '@intlayer/backend';\nimport configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\n\nexport type {\n AuditEvent,\n GetRecursiveAuditStatusResult,\n StartRecursiveAuditResult,\n};\n\nexport type ScanUrlBody = {\n url: string;\n onMessage?: (event: AuditEvent) => void;\n onDone?: () => void;\n};\n\nexport type DiscoverUrlsParams = {\n url: string;\n};\n\nexport type DiscoverUrlsResult = {\n urls: string[];\n};\n\nexport type StartRecursiveAuditBody = {\n url: string;\n urls?: string[];\n};\n\nexport type GetRecursiveAuditStatusParams = {\n jobId: string;\n};\n\nexport type RecursiveAuditJobParams = {\n jobId: string;\n};\n\nexport const getAuditAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n) => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const AUDIT_API_ROUTE = `${backendURL}/api/scan`;\n\n /**\n * Streams a single-page SEO audit as Server-Sent Events.\n *\n * Usage:\n * ```ts\n * await audit.scanUrl({\n * url: 'https://example.com',\n * onMessage: (event) => console.log(event),\n * onDone: () => console.log('done'),\n * });\n * ```\n */\n const discoverUrls = async (\n params?: DiscoverUrlsParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<DiscoverUrlsResult>(\n `${AUDIT_API_ROUTE}/recursive/discover`,\n authAPIOptions,\n otherOptions,\n {\n method: 'GET',\n params,\n }\n );\n\n const scanUrl = async (\n body?: ScanUrlBody,\n otherOptions: FetcherOptions = {}\n ) => {\n if (!body?.url) return;\n\n const { url, onMessage, onDone } = body;\n\n const params = new URLSearchParams({ url });\n const endpoint = `${AUDIT_API_ROUTE}?${params.toString()}`;\n\n const response = await fetch(endpoint, {\n method: 'GET',\n headers: {\n Accept: 'text/event-stream',\n ...authAPIOptions.headers,\n ...otherOptions.headers,\n },\n credentials: 'include',\n signal: otherOptions.signal,\n });\n\n if (!response.ok) {\n let errorMessage = 'An error occurred';\n try {\n const errorData = await response.json();\n errorMessage = JSON.stringify(errorData.error) ?? errorMessage;\n } catch {\n try {\n const errorText = await response.text();\n if (errorText) errorMessage = errorText;\n } catch {\n // ignore\n }\n }\n throw new Error(errorMessage);\n }\n\n const reader = response.body?.getReader();\n if (!reader) throw new Error('No reader available');\n\n const decoder = new TextDecoder();\n let buffer = '';\n\n while (true) {\n const { done, value } = await reader.read();\n\n if (done) break;\n\n buffer += decoder.decode(value, { stream: true });\n const lines = buffer.split('\\n');\n buffer = lines.pop() ?? '';\n\n for (const line of lines) {\n if (line.startsWith('data: ')) {\n try {\n const event = JSON.parse(line.slice(6)) as AuditEvent;\n onMessage?.(event);\n } catch {\n // ignore malformed lines\n }\n }\n }\n }\n\n onDone?.();\n };\n\n /**\n * Starts a recursive audit job for the given URL.\n */\n const startRecursiveAudit = async (\n body?: StartRecursiveAuditBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<StartRecursiveAuditResult>(\n `${AUDIT_API_ROUTE}/recursive/start`,\n authAPIOptions,\n otherOptions,\n {\n method: 'POST',\n params: body?.url ? { url: body.url } : undefined,\n body: body?.urls !== undefined ? { urls: body.urls as any } : undefined,\n }\n );\n\n /**\n * Gets the status of a recursive audit job.\n */\n const getRecursiveAuditStatus = async (\n params?: GetRecursiveAuditStatusParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetRecursiveAuditStatusResult>(\n `${AUDIT_API_ROUTE}/recursive/${params?.jobId}`,\n authAPIOptions,\n otherOptions,\n {\n method: 'GET',\n }\n );\n\n const cancelRecursiveAudit = async (\n params?: RecursiveAuditJobParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<{ success: boolean }>(\n `${AUDIT_API_ROUTE}/recursive/${params?.jobId}/cancel`,\n authAPIOptions,\n otherOptions,\n { method: 'POST' }\n );\n\n const pauseRecursiveAudit = async (\n params?: RecursiveAuditJobParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<{ success: boolean }>(\n `${AUDIT_API_ROUTE}/recursive/${params?.jobId}/pause`,\n authAPIOptions,\n otherOptions,\n { method: 'POST' }\n );\n\n const resumeRecursiveAudit = async (\n params?: RecursiveAuditJobParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<{ success: boolean }>(\n `${AUDIT_API_ROUTE}/recursive/${params?.jobId}/resume`,\n authAPIOptions,\n otherOptions,\n { method: 'POST' }\n );\n\n return {\n discoverUrls,\n scanUrl,\n startRecursiveAudit,\n getRecursiveAuditStatus,\n cancelRecursiveAudit,\n pauseRecursiveAudit,\n resumeRecursiveAudit,\n };\n};\n"],"mappings":"2MA0CA,MAAa,GACX,EAAiC,EAAE,CACnC,IACG,CACH,IAAM,EACJ,GAAgB,QAAQ,YAAcA,EAAAA,SAAe,QAAQ,WAE/D,GAAI,CAAC,EACH,MAAU,MACR,4DACD,CAGH,IAAM,EAAkB,GAAG,EAAW,WAmKtC,MAAO,CACL,aAtJmB,MACnB,EACA,EAA+B,EAAE,GAEjC,MAAMC,EAAAA,QACJ,GAAG,EAAgB,qBACnB,EACA,EACA,CACE,OAAQ,MACR,SACD,CACF,CA2ID,QAzIc,MACd,EACA,EAA+B,EAAE,GAC9B,CACH,GAAI,CAAC,GAAM,IAAK,OAEhB,GAAM,CAAE,MAAK,YAAW,UAAW,EAG7B,EAAW,GAAG,EAAgB,GADrB,IAAI,gBAAgB,CAAE,MAAK,CAAC,CACG,UAAU,GAElD,EAAW,MAAM,MAAM,EAAU,CACrC,OAAQ,MACR,QAAS,CACP,OAAQ,oBACR,GAAG,EAAe,QAClB,GAAG,EAAa,QACjB,CACD,YAAa,UACb,OAAQ,EAAa,OACtB,CAAC,CAEF,GAAI,CAAC,EAAS,GAAI,CAChB,IAAI,EAAe,oBACnB,GAAI,CACF,IAAM,EAAY,MAAM,EAAS,MAAM,CACvC,EAAe,KAAK,UAAU,EAAU,MAAM,EAAI,OAC5C,CACN,GAAI,CACF,IAAM,EAAY,MAAM,EAAS,MAAM,CACnC,IAAW,EAAe,QACxB,GAIV,MAAU,MAAM,EAAa,CAG/B,IAAM,EAAS,EAAS,MAAM,WAAW,CACzC,GAAI,CAAC,EAAQ,MAAU,MAAM,sBAAsB,CAEnD,IAAM,EAAU,IAAI,YAChB,EAAS,GAEb,OAAa,CACX,GAAM,CAAE,OAAM,SAAU,MAAM,EAAO,MAAM,CAE3C,GAAI,EAAM,MAEV,GAAU,EAAQ,OAAO,EAAO,CAAE,OAAQ,GAAM,CAAC,CACjD,IAAM,EAAQ,EAAO,MAAM;EAAK,CAChC,EAAS,EAAM,KAAK,EAAI,GAExB,IAAK,IAAM,KAAQ,EACjB,GAAI,EAAK,WAAW,SAAS,CAC3B,GAAI,CACF,IAAM,EAAQ,KAAK,MAAM,EAAK,MAAM,EAAE,CAAC,CACvC,IAAY,EAAM,MACZ,GAOd,KAAU,EAyEV,oBAnE0B,MAC1B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAgB,kBACnB,EACA,EACA,CACE,OAAQ,OACR,OAAQ,GAAM,IAAM,CAAE,IAAK,EAAK,IAAK,CAAG,IAAA,GACxC,KAAM,GAAM,OAAS,IAAA,GAAyC,IAAA,GAA7B,CAAE,KAAM,EAAK,KAAa,CAC5D,CACF,CAuDD,wBAlD8B,MAC9B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAgB,aAAa,GAAQ,QACxC,EACA,EACA,CACE,OAAQ,MACT,CACF,CAwCD,qBAtC2B,MAC3B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAgB,aAAa,GAAQ,MAAM,SAC9C,EACA,EACA,CAAE,OAAQ,OAAQ,CACnB,CA8BD,oBA5B0B,MAC1B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAgB,aAAa,GAAQ,MAAM,QAC9C,EACA,EACA,CAAE,OAAQ,OAAQ,CACnB,CAoBD,qBAlB2B,MAC3B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAgB,aAAa,GAAQ,MAAM,SAC9C,EACA,EACA,CAAE,OAAQ,OAAQ,CACnB,CAUF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`../fetcher.cjs`);let n=require(`@intlayer/config/built`);n=e.__toESM(n);const r=(e={},r)=>{let i=r?.editor?.backendURL??n.default?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/showcase-project`;return{getShowcaseProjects:async(n,r={})=>{let i={};return n?.page!==void 0&&(i.page=String(n.page)),n?.pageSize!==void 0&&(i.pageSize=String(n.pageSize)),n?.search!==void 0&&(i.search=n.search),n?.isOpenSource!==void 0&&(i.isOpenSource=String(n.isOpenSource)),n?.selectedUseCases?.length&&(i.selectedUseCases=n.selectedUseCases),await t.fetcher(a,e,r,{method:`GET`,params:i})},getShowcaseProjectById:async(n,r={})=>await t.fetcher(`${a}/${n}`,e,r,{method:`GET`}),getOtherShowcaseProjects:async(n,r
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`../fetcher.cjs`);let n=require(`@intlayer/config/built`);n=e.__toESM(n);const r=(e={},r)=>{let i=r?.editor?.backendURL??n.default?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/showcase-project`;return{getShowcaseProjects:async(n,r={})=>{let i={};return n?.page!==void 0&&(i.page=String(n.page)),n?.pageSize!==void 0&&(i.pageSize=String(n.pageSize)),n?.search!==void 0&&(i.search=n.search),n?.isOpenSource!==void 0&&(i.isOpenSource=String(n.isOpenSource)),n?.selectedUseCases?.length&&(i.selectedUseCases=n.selectedUseCases),await t.fetcher(a,e,r,{method:`GET`,params:i})},getShowcaseProjectById:async(n,r={})=>await t.fetcher(`${a}/${n}`,e,r,{method:`GET`}),getOtherShowcaseProjects:async(n,r={})=>{let i={excludeId:n.excludeId};return n.limit!==void 0&&(i.limit=String(n.limit)),await t.fetcher(`${a}/others`,e,r,{method:`GET`,params:i})},submitShowcaseProject:async(n,r={})=>await t.fetcher(`${a}/submit`,e,r,{method:`POST`,body:n}),toggleShowcaseUpvote:async(n,r={})=>await t.fetcher(`${a}/upvote`,e,r,{method:`POST`,body:n}),toggleShowcaseDownvote:async(n,r={})=>await t.fetcher(`${a}/downvote`,e,r,{method:`POST`,body:n}),deleteShowcaseProject:async(n,r={})=>await t.fetcher(`${a}/${n}`,e,r,{method:`DELETE`}),updateShowcaseProject:async(n,r,i={})=>await t.fetcher(`${a}/${n}`,e,i,{method:`PATCH`,body:r})}};exports.getShowcaseProjectAPI=r;
|
|
2
2
|
//# sourceMappingURL=showcaseProject.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showcaseProject.cjs","names":["configuration","fetcher"],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\n\nexport type ShowcaseProjectsQuery = {\n page?: number;\n pageSize?: number;\n search?: string;\n selectedUseCases?: string[];\n isOpenSource?: boolean;\n};\n\nexport type
|
|
1
|
+
{"version":3,"file":"showcaseProject.cjs","names":["configuration","fetcher"],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"sourcesContent":["import type {\n GetOtherShowcaseProjectsResult,\n GetShowcaseProjectByIdParams,\n GetShowcaseProjectByIdResult,\n GetShowcaseProjectsResult,\n SubmitShowcaseProjectBody,\n SubmitShowcaseProjectResult,\n ToggleShowcaseDownvoteBody,\n ToggleShowcaseDownvoteResult,\n ToggleShowcaseUpvoteBody,\n ToggleShowcaseUpvoteResult,\n UpdateShowcaseProjectBody,\n UpdateShowcaseProjectResult,\n} from '@intlayer/backend';\nimport configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\n\n// Client-side query types use proper JS types (numbers/booleans) rather than\n// the backend querystring types which are always strings.\nexport type ShowcaseProjectsQuery = {\n page?: number;\n pageSize?: number;\n search?: string;\n selectedUseCases?: string[];\n isOpenSource?: boolean;\n};\n\nexport type OtherShowcaseProjectsQuery = {\n excludeId: string;\n limit?: number;\n};\n\nexport const getShowcaseProjectAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n) => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const SHOWCASE_API_ROUTE = `${backendURL}/api/showcase-project`;\n\n const getShowcaseProjects = async (\n query?: ShowcaseProjectsQuery,\n otherOptions: FetcherOptions = {}\n ) => {\n const params: Record<string, string | string[]> = {};\n if (query?.page !== undefined) params.page = String(query.page);\n if (query?.pageSize !== undefined) params.pageSize = String(query.pageSize);\n if (query?.search !== undefined) params.search = query.search;\n if (query?.isOpenSource !== undefined)\n params.isOpenSource = String(query.isOpenSource);\n if (query?.selectedUseCases?.length)\n params.selectedUseCases = query.selectedUseCases;\n\n return await fetcher<GetShowcaseProjectsResult>(\n SHOWCASE_API_ROUTE,\n authAPIOptions,\n otherOptions,\n { method: 'GET', params: params as any }\n );\n };\n\n const getShowcaseProjectById = async (\n projectId: GetShowcaseProjectByIdParams['projectId'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetShowcaseProjectByIdResult>(\n `${SHOWCASE_API_ROUTE}/${projectId}`,\n authAPIOptions,\n otherOptions,\n { method: 'GET' }\n );\n\n const getOtherShowcaseProjects = async (\n query: OtherShowcaseProjectsQuery,\n otherOptions: FetcherOptions = {}\n ) => {\n const params: Record<string, string> = { excludeId: query.excludeId };\n if (query.limit !== undefined) params.limit = String(query.limit);\n return await fetcher<GetOtherShowcaseProjectsResult>(\n `${SHOWCASE_API_ROUTE}/others`,\n authAPIOptions,\n otherOptions,\n { method: 'GET', params: params as any }\n );\n };\n\n const submitShowcaseProject = async (\n body: SubmitShowcaseProjectBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<SubmitShowcaseProjectResult>(\n `${SHOWCASE_API_ROUTE}/submit`,\n authAPIOptions,\n otherOptions,\n { method: 'POST', body }\n );\n\n const toggleShowcaseUpvote = async (\n body: ToggleShowcaseUpvoteBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<ToggleShowcaseUpvoteResult>(\n `${SHOWCASE_API_ROUTE}/upvote`,\n authAPIOptions,\n otherOptions,\n { method: 'POST', body }\n );\n\n const toggleShowcaseDownvote = async (\n body: ToggleShowcaseDownvoteBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<ToggleShowcaseDownvoteResult>(\n `${SHOWCASE_API_ROUTE}/downvote`,\n authAPIOptions,\n otherOptions,\n { method: 'POST', body }\n );\n\n const deleteShowcaseProject = async (\n projectId: GetShowcaseProjectByIdParams['projectId'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<{ data: { success: boolean } }>(\n `${SHOWCASE_API_ROUTE}/${projectId}`,\n authAPIOptions,\n otherOptions,\n { method: 'DELETE' }\n );\n\n const updateShowcaseProject = async (\n projectId: GetShowcaseProjectByIdParams['projectId'],\n body: UpdateShowcaseProjectBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<UpdateShowcaseProjectResult>(\n `${SHOWCASE_API_ROUTE}/${projectId}`,\n authAPIOptions,\n otherOptions,\n { method: 'PATCH', body }\n );\n\n return {\n getShowcaseProjects,\n getShowcaseProjectById,\n getOtherShowcaseProjects,\n submitShowcaseProject,\n toggleShowcaseUpvote,\n toggleShowcaseDownvote,\n deleteShowcaseProject,\n updateShowcaseProject,\n };\n};\n"],"mappings":"2MAiCA,MAAa,GACX,EAAiC,EAAE,CACnC,IACG,CACH,IAAM,EACJ,GAAgB,QAAQ,YAAcA,EAAAA,SAAe,QAAQ,WAE/D,GAAI,CAAC,EACH,MAAU,MACR,4DACD,CAGH,IAAM,EAAqB,GAAG,EAAW,uBAwGzC,MAAO,CACL,oBAvG0B,MAC1B,EACA,EAA+B,EAAE,GAC9B,CACH,IAAM,EAA4C,EAAE,CASpD,OARI,GAAO,OAAS,IAAA,KAAW,EAAO,KAAO,OAAO,EAAM,KAAK,EAC3D,GAAO,WAAa,IAAA,KAAW,EAAO,SAAW,OAAO,EAAM,SAAS,EACvE,GAAO,SAAW,IAAA,KAAW,EAAO,OAAS,EAAM,QACnD,GAAO,eAAiB,IAAA,KAC1B,EAAO,aAAe,OAAO,EAAM,aAAa,EAC9C,GAAO,kBAAkB,SAC3B,EAAO,iBAAmB,EAAM,kBAE3B,MAAMC,EAAAA,QACX,EACA,EACA,EACA,CAAE,OAAQ,MAAe,SAAe,CACzC,EAsFD,uBAnF6B,MAC7B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAmB,GAAG,IACzB,EACA,EACA,CAAE,OAAQ,MAAO,CAClB,CA2ED,yBAzE+B,MAC/B,EACA,EAA+B,EAAE,GAC9B,CACH,IAAM,EAAiC,CAAE,UAAW,EAAM,UAAW,CAErE,OADI,EAAM,QAAU,IAAA,KAAW,EAAO,MAAQ,OAAO,EAAM,MAAM,EAC1D,MAAMA,EAAAA,QACX,GAAG,EAAmB,SACtB,EACA,EACA,CAAE,OAAQ,MAAe,SAAe,CACzC,EA+DD,sBA5D4B,MAC5B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAmB,SACtB,EACA,EACA,CAAE,OAAQ,OAAQ,OAAM,CACzB,CAoDD,qBAlD2B,MAC3B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAmB,SACtB,EACA,EACA,CAAE,OAAQ,OAAQ,OAAM,CACzB,CA0CD,uBAxC6B,MAC7B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAmB,WACtB,EACA,EACA,CAAE,OAAQ,OAAQ,OAAM,CACzB,CAgCD,sBA9B4B,MAC5B,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAmB,GAAG,IACzB,EACA,EACA,CAAE,OAAQ,SAAU,CACrB,CAsBD,sBApB4B,MAC5B,EACA,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAmB,GAAG,IACzB,EACA,EACA,CAAE,OAAQ,QAAS,OAAM,CAC1B,CAWF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{fetcher as e}from"../fetcher.mjs";import t from"@intlayer/config/built";const n=(n={},r)=>{let i=r?.editor?.backendURL??t?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/scan`;return{scanUrl:async(e,t={})=>{if(!e?.url)return;let{url:r,onMessage:i,onDone:o}=e,s=`${a}?${new URLSearchParams({url:r}).toString()}`,c=await fetch(s,{method:`GET`,headers:{Accept:`text/event-stream`,...n.headers,...t.headers},credentials:`include`,signal:t.signal});if(!c.ok){let e=`An error occurred`;try{let t=await c.json();e=JSON.stringify(t.error)??e}catch{try{let t=await c.text();t&&(e=t)}catch{}}throw Error(e)}let l=c.body?.getReader();if(!l)throw Error(`No reader available`);let u=new TextDecoder,d=``;for(;;){let{done:e,value:t}=await l.read();if(e)break;d+=u.decode(t,{stream:!0});let n=d.split(`
|
|
2
|
-
`);d=n.pop()??``;for(let e of n)if(e.startsWith(`data: `))try{let t=JSON.parse(e.slice(6));i?.(t)}catch{}}o?.()},startRecursiveAudit:async(t,r={})=>await e(`${a}/recursive/start`,n,r,{method:`POST`,params:t}),getRecursiveAuditStatus:async(t,r={})=>await e(`${a}/recursive/${t?.jobId}`,n,r,{method:`GET`})}};export{n as getAuditAPI};
|
|
1
|
+
import{fetcher as e}from"../fetcher.mjs";import t from"@intlayer/config/built";const n=(n={},r)=>{let i=r?.editor?.backendURL??t?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/scan`;return{discoverUrls:async(t,r={})=>await e(`${a}/recursive/discover`,n,r,{method:`GET`,params:t}),scanUrl:async(e,t={})=>{if(!e?.url)return;let{url:r,onMessage:i,onDone:o}=e,s=`${a}?${new URLSearchParams({url:r}).toString()}`,c=await fetch(s,{method:`GET`,headers:{Accept:`text/event-stream`,...n.headers,...t.headers},credentials:`include`,signal:t.signal});if(!c.ok){let e=`An error occurred`;try{let t=await c.json();e=JSON.stringify(t.error)??e}catch{try{let t=await c.text();t&&(e=t)}catch{}}throw Error(e)}let l=c.body?.getReader();if(!l)throw Error(`No reader available`);let u=new TextDecoder,d=``;for(;;){let{done:e,value:t}=await l.read();if(e)break;d+=u.decode(t,{stream:!0});let n=d.split(`
|
|
2
|
+
`);d=n.pop()??``;for(let e of n)if(e.startsWith(`data: `))try{let t=JSON.parse(e.slice(6));i?.(t)}catch{}}o?.()},startRecursiveAudit:async(t,r={})=>await e(`${a}/recursive/start`,n,r,{method:`POST`,params:t?.url?{url:t.url}:void 0,body:t?.urls===void 0?void 0:{urls:t.urls}}),getRecursiveAuditStatus:async(t,r={})=>await e(`${a}/recursive/${t?.jobId}`,n,r,{method:`GET`}),cancelRecursiveAudit:async(t,r={})=>await e(`${a}/recursive/${t?.jobId}/cancel`,n,r,{method:`POST`}),pauseRecursiveAudit:async(t,r={})=>await e(`${a}/recursive/${t?.jobId}/pause`,n,r,{method:`POST`}),resumeRecursiveAudit:async(t,r={})=>await e(`${a}/recursive/${t?.jobId}/resume`,n,r,{method:`POST`})}};export{n as getAuditAPI};
|
|
3
3
|
//# sourceMappingURL=audit.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.mjs","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"sourcesContent":["import type {\n AuditEvent,\n GetRecursiveAuditStatusResult,\n StartRecursiveAuditResult,\n} from '@intlayer/backend';\nimport configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\n\nexport type {\n AuditEvent,\n GetRecursiveAuditStatusResult,\n StartRecursiveAuditResult,\n};\n\nexport type ScanUrlBody = {\n url: string;\n onMessage?: (event: AuditEvent) => void;\n onDone?: () => void;\n};\n\nexport type StartRecursiveAuditBody = {\n url: string;\n};\n\nexport type GetRecursiveAuditStatusParams = {\n jobId: string;\n};\n\nexport const getAuditAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n) => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const AUDIT_API_ROUTE = `${backendURL}/api/scan`;\n\n /**\n * Streams a single-page SEO audit as Server-Sent Events.\n *\n * Usage:\n * ```ts\n * await audit.scanUrl({\n * url: 'https://example.com',\n * onMessage: (event) => console.log(event),\n * onDone: () => console.log('done'),\n * });\n * ```\n */\n const scanUrl = async (\n body?: ScanUrlBody,\n otherOptions: FetcherOptions = {}\n ) => {\n if (!body?.url) return;\n\n const { url, onMessage, onDone } = body;\n\n const params = new URLSearchParams({ url });\n const endpoint = `${AUDIT_API_ROUTE}?${params.toString()}`;\n\n const response = await fetch(endpoint, {\n method: 'GET',\n headers: {\n Accept: 'text/event-stream',\n ...authAPIOptions.headers,\n ...otherOptions.headers,\n },\n credentials: 'include',\n signal: otherOptions.signal,\n });\n\n if (!response.ok) {\n let errorMessage = 'An error occurred';\n try {\n const errorData = await response.json();\n errorMessage = JSON.stringify(errorData.error) ?? errorMessage;\n } catch {\n try {\n const errorText = await response.text();\n if (errorText) errorMessage = errorText;\n } catch {\n // ignore\n }\n }\n throw new Error(errorMessage);\n }\n\n const reader = response.body?.getReader();\n if (!reader) throw new Error('No reader available');\n\n const decoder = new TextDecoder();\n let buffer = '';\n\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n\n buffer += decoder.decode(value, { stream: true });\n const lines = buffer.split('\\n');\n buffer = lines.pop() ?? '';\n\n for (const line of lines) {\n if (line.startsWith('data: ')) {\n try {\n const event = JSON.parse(line.slice(6)) as AuditEvent;\n onMessage?.(event);\n } catch {\n // ignore
|
|
1
|
+
{"version":3,"file":"audit.mjs","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"sourcesContent":["import type {\n AuditEvent,\n GetRecursiveAuditStatusResult,\n StartRecursiveAuditResult,\n} from '@intlayer/backend';\nimport configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\n\nexport type {\n AuditEvent,\n GetRecursiveAuditStatusResult,\n StartRecursiveAuditResult,\n};\n\nexport type ScanUrlBody = {\n url: string;\n onMessage?: (event: AuditEvent) => void;\n onDone?: () => void;\n};\n\nexport type DiscoverUrlsParams = {\n url: string;\n};\n\nexport type DiscoverUrlsResult = {\n urls: string[];\n};\n\nexport type StartRecursiveAuditBody = {\n url: string;\n urls?: string[];\n};\n\nexport type GetRecursiveAuditStatusParams = {\n jobId: string;\n};\n\nexport type RecursiveAuditJobParams = {\n jobId: string;\n};\n\nexport const getAuditAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n) => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const AUDIT_API_ROUTE = `${backendURL}/api/scan`;\n\n /**\n * Streams a single-page SEO audit as Server-Sent Events.\n *\n * Usage:\n * ```ts\n * await audit.scanUrl({\n * url: 'https://example.com',\n * onMessage: (event) => console.log(event),\n * onDone: () => console.log('done'),\n * });\n * ```\n */\n const discoverUrls = async (\n params?: DiscoverUrlsParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<DiscoverUrlsResult>(\n `${AUDIT_API_ROUTE}/recursive/discover`,\n authAPIOptions,\n otherOptions,\n {\n method: 'GET',\n params,\n }\n );\n\n const scanUrl = async (\n body?: ScanUrlBody,\n otherOptions: FetcherOptions = {}\n ) => {\n if (!body?.url) return;\n\n const { url, onMessage, onDone } = body;\n\n const params = new URLSearchParams({ url });\n const endpoint = `${AUDIT_API_ROUTE}?${params.toString()}`;\n\n const response = await fetch(endpoint, {\n method: 'GET',\n headers: {\n Accept: 'text/event-stream',\n ...authAPIOptions.headers,\n ...otherOptions.headers,\n },\n credentials: 'include',\n signal: otherOptions.signal,\n });\n\n if (!response.ok) {\n let errorMessage = 'An error occurred';\n try {\n const errorData = await response.json();\n errorMessage = JSON.stringify(errorData.error) ?? errorMessage;\n } catch {\n try {\n const errorText = await response.text();\n if (errorText) errorMessage = errorText;\n } catch {\n // ignore\n }\n }\n throw new Error(errorMessage);\n }\n\n const reader = response.body?.getReader();\n if (!reader) throw new Error('No reader available');\n\n const decoder = new TextDecoder();\n let buffer = '';\n\n while (true) {\n const { done, value } = await reader.read();\n\n if (done) break;\n\n buffer += decoder.decode(value, { stream: true });\n const lines = buffer.split('\\n');\n buffer = lines.pop() ?? '';\n\n for (const line of lines) {\n if (line.startsWith('data: ')) {\n try {\n const event = JSON.parse(line.slice(6)) as AuditEvent;\n onMessage?.(event);\n } catch {\n // ignore malformed lines\n }\n }\n }\n }\n\n onDone?.();\n };\n\n /**\n * Starts a recursive audit job for the given URL.\n */\n const startRecursiveAudit = async (\n body?: StartRecursiveAuditBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<StartRecursiveAuditResult>(\n `${AUDIT_API_ROUTE}/recursive/start`,\n authAPIOptions,\n otherOptions,\n {\n method: 'POST',\n params: body?.url ? { url: body.url } : undefined,\n body: body?.urls !== undefined ? { urls: body.urls as any } : undefined,\n }\n );\n\n /**\n * Gets the status of a recursive audit job.\n */\n const getRecursiveAuditStatus = async (\n params?: GetRecursiveAuditStatusParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetRecursiveAuditStatusResult>(\n `${AUDIT_API_ROUTE}/recursive/${params?.jobId}`,\n authAPIOptions,\n otherOptions,\n {\n method: 'GET',\n }\n );\n\n const cancelRecursiveAudit = async (\n params?: RecursiveAuditJobParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<{ success: boolean }>(\n `${AUDIT_API_ROUTE}/recursive/${params?.jobId}/cancel`,\n authAPIOptions,\n otherOptions,\n { method: 'POST' }\n );\n\n const pauseRecursiveAudit = async (\n params?: RecursiveAuditJobParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<{ success: boolean }>(\n `${AUDIT_API_ROUTE}/recursive/${params?.jobId}/pause`,\n authAPIOptions,\n otherOptions,\n { method: 'POST' }\n );\n\n const resumeRecursiveAudit = async (\n params?: RecursiveAuditJobParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<{ success: boolean }>(\n `${AUDIT_API_ROUTE}/recursive/${params?.jobId}/resume`,\n authAPIOptions,\n otherOptions,\n { method: 'POST' }\n );\n\n return {\n discoverUrls,\n scanUrl,\n startRecursiveAudit,\n getRecursiveAuditStatus,\n cancelRecursiveAudit,\n pauseRecursiveAudit,\n resumeRecursiveAudit,\n };\n};\n"],"mappings":"+EA0CA,MAAa,GACX,EAAiC,EAAE,CACnC,IACG,CACH,IAAM,EACJ,GAAgB,QAAQ,YAAc,GAAe,QAAQ,WAE/D,GAAI,CAAC,EACH,MAAU,MACR,4DACD,CAGH,IAAM,EAAkB,GAAG,EAAW,WAmKtC,MAAO,CACL,aAtJmB,MACnB,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAgB,qBACnB,EACA,EACA,CACE,OAAQ,MACR,SACD,CACF,CA2ID,QAzIc,MACd,EACA,EAA+B,EAAE,GAC9B,CACH,GAAI,CAAC,GAAM,IAAK,OAEhB,GAAM,CAAE,MAAK,YAAW,UAAW,EAG7B,EAAW,GAAG,EAAgB,GADrB,IAAI,gBAAgB,CAAE,MAAK,CAAC,CACG,UAAU,GAElD,EAAW,MAAM,MAAM,EAAU,CACrC,OAAQ,MACR,QAAS,CACP,OAAQ,oBACR,GAAG,EAAe,QAClB,GAAG,EAAa,QACjB,CACD,YAAa,UACb,OAAQ,EAAa,OACtB,CAAC,CAEF,GAAI,CAAC,EAAS,GAAI,CAChB,IAAI,EAAe,oBACnB,GAAI,CACF,IAAM,EAAY,MAAM,EAAS,MAAM,CACvC,EAAe,KAAK,UAAU,EAAU,MAAM,EAAI,OAC5C,CACN,GAAI,CACF,IAAM,EAAY,MAAM,EAAS,MAAM,CACnC,IAAW,EAAe,QACxB,GAIV,MAAU,MAAM,EAAa,CAG/B,IAAM,EAAS,EAAS,MAAM,WAAW,CACzC,GAAI,CAAC,EAAQ,MAAU,MAAM,sBAAsB,CAEnD,IAAM,EAAU,IAAI,YAChB,EAAS,GAEb,OAAa,CACX,GAAM,CAAE,OAAM,SAAU,MAAM,EAAO,MAAM,CAE3C,GAAI,EAAM,MAEV,GAAU,EAAQ,OAAO,EAAO,CAAE,OAAQ,GAAM,CAAC,CACjD,IAAM,EAAQ,EAAO,MAAM;EAAK,CAChC,EAAS,EAAM,KAAK,EAAI,GAExB,IAAK,IAAM,KAAQ,EACjB,GAAI,EAAK,WAAW,SAAS,CAC3B,GAAI,CACF,IAAM,EAAQ,KAAK,MAAM,EAAK,MAAM,EAAE,CAAC,CACvC,IAAY,EAAM,MACZ,GAOd,KAAU,EAyEV,oBAnE0B,MAC1B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAgB,kBACnB,EACA,EACA,CACE,OAAQ,OACR,OAAQ,GAAM,IAAM,CAAE,IAAK,EAAK,IAAK,CAAG,IAAA,GACxC,KAAM,GAAM,OAAS,IAAA,GAAyC,IAAA,GAA7B,CAAE,KAAM,EAAK,KAAa,CAC5D,CACF,CAuDD,wBAlD8B,MAC9B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAgB,aAAa,GAAQ,QACxC,EACA,EACA,CACE,OAAQ,MACT,CACF,CAwCD,qBAtC2B,MAC3B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAgB,aAAa,GAAQ,MAAM,SAC9C,EACA,EACA,CAAE,OAAQ,OAAQ,CACnB,CA8BD,oBA5B0B,MAC1B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAgB,aAAa,GAAQ,MAAM,QAC9C,EACA,EACA,CAAE,OAAQ,OAAQ,CACnB,CAoBD,qBAlB2B,MAC3B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAgB,aAAa,GAAQ,MAAM,SAC9C,EACA,EACA,CAAE,OAAQ,OAAQ,CACnB,CAUF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{fetcher as e}from"../fetcher.mjs";import t from"@intlayer/config/built";const n=(n={},r)=>{let i=r?.editor?.backendURL??t?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/showcase-project`;return{getShowcaseProjects:async(t,r={})=>{let i={};return t?.page!==void 0&&(i.page=String(t.page)),t?.pageSize!==void 0&&(i.pageSize=String(t.pageSize)),t?.search!==void 0&&(i.search=t.search),t?.isOpenSource!==void 0&&(i.isOpenSource=String(t.isOpenSource)),t?.selectedUseCases?.length&&(i.selectedUseCases=t.selectedUseCases),await e(a,n,r,{method:`GET`,params:i})},getShowcaseProjectById:async(t,r={})=>await e(`${a}/${t}`,n,r,{method:`GET`}),getOtherShowcaseProjects:async(t,r
|
|
1
|
+
import{fetcher as e}from"../fetcher.mjs";import t from"@intlayer/config/built";const n=(n={},r)=>{let i=r?.editor?.backendURL??t?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/showcase-project`;return{getShowcaseProjects:async(t,r={})=>{let i={};return t?.page!==void 0&&(i.page=String(t.page)),t?.pageSize!==void 0&&(i.pageSize=String(t.pageSize)),t?.search!==void 0&&(i.search=t.search),t?.isOpenSource!==void 0&&(i.isOpenSource=String(t.isOpenSource)),t?.selectedUseCases?.length&&(i.selectedUseCases=t.selectedUseCases),await e(a,n,r,{method:`GET`,params:i})},getShowcaseProjectById:async(t,r={})=>await e(`${a}/${t}`,n,r,{method:`GET`}),getOtherShowcaseProjects:async(t,r={})=>{let i={excludeId:t.excludeId};return t.limit!==void 0&&(i.limit=String(t.limit)),await e(`${a}/others`,n,r,{method:`GET`,params:i})},submitShowcaseProject:async(t,r={})=>await e(`${a}/submit`,n,r,{method:`POST`,body:t}),toggleShowcaseUpvote:async(t,r={})=>await e(`${a}/upvote`,n,r,{method:`POST`,body:t}),toggleShowcaseDownvote:async(t,r={})=>await e(`${a}/downvote`,n,r,{method:`POST`,body:t}),deleteShowcaseProject:async(t,r={})=>await e(`${a}/${t}`,n,r,{method:`DELETE`}),updateShowcaseProject:async(t,r,i={})=>await e(`${a}/${t}`,n,i,{method:`PATCH`,body:r})}};export{n as getShowcaseProjectAPI};
|
|
2
2
|
//# sourceMappingURL=showcaseProject.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showcaseProject.mjs","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\n\nexport type ShowcaseProjectsQuery = {\n page?: number;\n pageSize?: number;\n search?: string;\n selectedUseCases?: string[];\n isOpenSource?: boolean;\n};\n\nexport type
|
|
1
|
+
{"version":3,"file":"showcaseProject.mjs","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"sourcesContent":["import type {\n GetOtherShowcaseProjectsResult,\n GetShowcaseProjectByIdParams,\n GetShowcaseProjectByIdResult,\n GetShowcaseProjectsResult,\n SubmitShowcaseProjectBody,\n SubmitShowcaseProjectResult,\n ToggleShowcaseDownvoteBody,\n ToggleShowcaseDownvoteResult,\n ToggleShowcaseUpvoteBody,\n ToggleShowcaseUpvoteResult,\n UpdateShowcaseProjectBody,\n UpdateShowcaseProjectResult,\n} from '@intlayer/backend';\nimport configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\n\n// Client-side query types use proper JS types (numbers/booleans) rather than\n// the backend querystring types which are always strings.\nexport type ShowcaseProjectsQuery = {\n page?: number;\n pageSize?: number;\n search?: string;\n selectedUseCases?: string[];\n isOpenSource?: boolean;\n};\n\nexport type OtherShowcaseProjectsQuery = {\n excludeId: string;\n limit?: number;\n};\n\nexport const getShowcaseProjectAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n) => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const SHOWCASE_API_ROUTE = `${backendURL}/api/showcase-project`;\n\n const getShowcaseProjects = async (\n query?: ShowcaseProjectsQuery,\n otherOptions: FetcherOptions = {}\n ) => {\n const params: Record<string, string | string[]> = {};\n if (query?.page !== undefined) params.page = String(query.page);\n if (query?.pageSize !== undefined) params.pageSize = String(query.pageSize);\n if (query?.search !== undefined) params.search = query.search;\n if (query?.isOpenSource !== undefined)\n params.isOpenSource = String(query.isOpenSource);\n if (query?.selectedUseCases?.length)\n params.selectedUseCases = query.selectedUseCases;\n\n return await fetcher<GetShowcaseProjectsResult>(\n SHOWCASE_API_ROUTE,\n authAPIOptions,\n otherOptions,\n { method: 'GET', params: params as any }\n );\n };\n\n const getShowcaseProjectById = async (\n projectId: GetShowcaseProjectByIdParams['projectId'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetShowcaseProjectByIdResult>(\n `${SHOWCASE_API_ROUTE}/${projectId}`,\n authAPIOptions,\n otherOptions,\n { method: 'GET' }\n );\n\n const getOtherShowcaseProjects = async (\n query: OtherShowcaseProjectsQuery,\n otherOptions: FetcherOptions = {}\n ) => {\n const params: Record<string, string> = { excludeId: query.excludeId };\n if (query.limit !== undefined) params.limit = String(query.limit);\n return await fetcher<GetOtherShowcaseProjectsResult>(\n `${SHOWCASE_API_ROUTE}/others`,\n authAPIOptions,\n otherOptions,\n { method: 'GET', params: params as any }\n );\n };\n\n const submitShowcaseProject = async (\n body: SubmitShowcaseProjectBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<SubmitShowcaseProjectResult>(\n `${SHOWCASE_API_ROUTE}/submit`,\n authAPIOptions,\n otherOptions,\n { method: 'POST', body }\n );\n\n const toggleShowcaseUpvote = async (\n body: ToggleShowcaseUpvoteBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<ToggleShowcaseUpvoteResult>(\n `${SHOWCASE_API_ROUTE}/upvote`,\n authAPIOptions,\n otherOptions,\n { method: 'POST', body }\n );\n\n const toggleShowcaseDownvote = async (\n body: ToggleShowcaseDownvoteBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<ToggleShowcaseDownvoteResult>(\n `${SHOWCASE_API_ROUTE}/downvote`,\n authAPIOptions,\n otherOptions,\n { method: 'POST', body }\n );\n\n const deleteShowcaseProject = async (\n projectId: GetShowcaseProjectByIdParams['projectId'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<{ data: { success: boolean } }>(\n `${SHOWCASE_API_ROUTE}/${projectId}`,\n authAPIOptions,\n otherOptions,\n { method: 'DELETE' }\n );\n\n const updateShowcaseProject = async (\n projectId: GetShowcaseProjectByIdParams['projectId'],\n body: UpdateShowcaseProjectBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<UpdateShowcaseProjectResult>(\n `${SHOWCASE_API_ROUTE}/${projectId}`,\n authAPIOptions,\n otherOptions,\n { method: 'PATCH', body }\n );\n\n return {\n getShowcaseProjects,\n getShowcaseProjectById,\n getOtherShowcaseProjects,\n submitShowcaseProject,\n toggleShowcaseUpvote,\n toggleShowcaseDownvote,\n deleteShowcaseProject,\n updateShowcaseProject,\n };\n};\n"],"mappings":"+EAiCA,MAAa,GACX,EAAiC,EAAE,CACnC,IACG,CACH,IAAM,EACJ,GAAgB,QAAQ,YAAc,GAAe,QAAQ,WAE/D,GAAI,CAAC,EACH,MAAU,MACR,4DACD,CAGH,IAAM,EAAqB,GAAG,EAAW,uBAwGzC,MAAO,CACL,oBAvG0B,MAC1B,EACA,EAA+B,EAAE,GAC9B,CACH,IAAM,EAA4C,EAAE,CASpD,OARI,GAAO,OAAS,IAAA,KAAW,EAAO,KAAO,OAAO,EAAM,KAAK,EAC3D,GAAO,WAAa,IAAA,KAAW,EAAO,SAAW,OAAO,EAAM,SAAS,EACvE,GAAO,SAAW,IAAA,KAAW,EAAO,OAAS,EAAM,QACnD,GAAO,eAAiB,IAAA,KAC1B,EAAO,aAAe,OAAO,EAAM,aAAa,EAC9C,GAAO,kBAAkB,SAC3B,EAAO,iBAAmB,EAAM,kBAE3B,MAAM,EACX,EACA,EACA,EACA,CAAE,OAAQ,MAAe,SAAe,CACzC,EAsFD,uBAnF6B,MAC7B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAmB,GAAG,IACzB,EACA,EACA,CAAE,OAAQ,MAAO,CAClB,CA2ED,yBAzE+B,MAC/B,EACA,EAA+B,EAAE,GAC9B,CACH,IAAM,EAAiC,CAAE,UAAW,EAAM,UAAW,CAErE,OADI,EAAM,QAAU,IAAA,KAAW,EAAO,MAAQ,OAAO,EAAM,MAAM,EAC1D,MAAM,EACX,GAAG,EAAmB,SACtB,EACA,EACA,CAAE,OAAQ,MAAe,SAAe,CACzC,EA+DD,sBA5D4B,MAC5B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAmB,SACtB,EACA,EACA,CAAE,OAAQ,OAAQ,OAAM,CACzB,CAoDD,qBAlD2B,MAC3B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAmB,SACtB,EACA,EACA,CAAE,OAAQ,OAAQ,OAAM,CACzB,CA0CD,uBAxC6B,MAC7B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAmB,WACtB,EACA,EACA,CAAE,OAAQ,OAAQ,OAAM,CACzB,CAgCD,sBA9B4B,MAC5B,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAmB,GAAG,IACzB,EACA,EACA,CAAE,OAAQ,SAAU,CACrB,CAsBD,sBApB4B,MAC5B,EACA,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAmB,GAAG,IACzB,EACA,EACA,CAAE,OAAQ,QAAS,OAAM,CAC1B,CAWF"}
|
|
@@ -7,7 +7,7 @@ type RecursiveAuditJobInfo = {
|
|
|
7
7
|
_id: string;
|
|
8
8
|
targetUrl: string;
|
|
9
9
|
userId?: string;
|
|
10
|
-
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
10
|
+
status: 'pending' | 'running' | 'paused' | 'cancelled' | 'completed' | 'failed';
|
|
11
11
|
progress: number;
|
|
12
12
|
totalPageCount: number;
|
|
13
13
|
completedPageCount: number;
|
|
@@ -20,6 +20,7 @@ type RecursiveAuditPageInfo = {
|
|
|
20
20
|
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
21
21
|
score?: number;
|
|
22
22
|
error?: string;
|
|
23
|
+
results?: any[];
|
|
23
24
|
};
|
|
24
25
|
type GetRecursiveAuditStatusResult = {
|
|
25
26
|
job: RecursiveAuditJobInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recursiveAudit.controller.d.ts","names":["FastifyReply","FastifyRequest","StartRecursiveAuditResult","jobId","RecursiveAuditJobInfo","Date","_id","targetUrl","userId","status","progress","totalPageCount","completedPageCount","createdAt","updatedAt","RecursiveAuditPageInfo","url","score","error","GetRecursiveAuditStatusResult","job","pages","
|
|
1
|
+
{"version":3,"file":"recursiveAudit.controller.d.ts","names":["FastifyReply","FastifyRequest","StartRecursiveAuditResult","jobId","DiscoverUrlsResult","urls","RecursiveAuditJobInfo","Date","_id","targetUrl","userId","status","progress","totalPageCount","completedPageCount","createdAt","updatedAt","RecursiveAuditPageInfo","url","score","error","results","GetRecursiveAuditStatusResult","job","pages","discoverUrls","Promise","Querystring","request","reply","startRecursiveAudit","Body","getRecursiveAuditStatus","Params","cancelRecursiveAudit","pauseRecursiveAudit","resumeRecursiveAudit"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts"],"mappings":";;KAGKE,yBAAAA;EACHC,KAAAA;AAAAA;AAAAA,KAKGG,qBAAAA;EACHE,GAAAA;EACAC,SAAAA;EACAC,MAAAA;EACAC,MAAAA;EACAC,QAAAA;EACAC,cAAAA;EACAC,kBAAAA;EACAC,SAAAA,EAAWR,IAAAA;EACXS,SAAAA,EAAWT,IAAAA;AAAAA;AAAAA,KAERU,sBAAAA;EACHT,GAAAA;EACAU,GAAAA;EACAP,MAAAA;EACAQ,KAAAA;EACAC,KAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,6BAAAA;EACHC,GAAAA,EAAKjB,qBAAAA;EACLkB,KAAAA,EAAOP,sBAAAA;AAAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PaginatedResponse, ResponseData } from "../utils/responseData.js";
|
|
2
|
+
import { ShowcaseProjectAPI } from "../types/showcaseProject.types.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region ../../../apps/backend/dist/types/controllers/showcaseProject.controller.d.ts
|
|
6
|
+
//#region src/controllers/showcaseProject.controller.d.ts
|
|
7
|
+
type SubmitShowcaseProjectResult = ResponseData<ShowcaseProjectAPI>;
|
|
8
|
+
/**
|
|
9
|
+
* POST /api/showcase-project/submit
|
|
10
|
+
* Submits a new project to the showcase.
|
|
11
|
+
*/
|
|
12
|
+
type GetShowcaseProjectsResult = PaginatedResponse<ShowcaseProjectAPI>;
|
|
13
|
+
/**
|
|
14
|
+
* GET /api/showcase-project
|
|
15
|
+
*/
|
|
16
|
+
type GetShowcaseProjectByIdParams = {
|
|
17
|
+
projectId: string;
|
|
18
|
+
};
|
|
19
|
+
type GetShowcaseProjectByIdResult = ResponseData<ShowcaseProjectAPI>;
|
|
20
|
+
/**
|
|
21
|
+
* GET /api/showcase-project/:projectId
|
|
22
|
+
*/
|
|
23
|
+
type GetOtherShowcaseProjectsResult = ResponseData<ShowcaseProjectAPI[]>;
|
|
24
|
+
/**
|
|
25
|
+
* GET /api/showcase-project/others?excludeId=...&limit=...
|
|
26
|
+
*/
|
|
27
|
+
type ToggleShowcaseUpvoteBody = {
|
|
28
|
+
projectId: string;
|
|
29
|
+
};
|
|
30
|
+
type ToggleShowcaseUpvoteResult = ResponseData<{
|
|
31
|
+
upvotes: number;
|
|
32
|
+
isUpVoted: boolean;
|
|
33
|
+
downvotes: number;
|
|
34
|
+
isDownVoted: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
/**
|
|
37
|
+
* POST /api/showcase-project/upvote
|
|
38
|
+
* Requires authentication — userId is read from the session.
|
|
39
|
+
*/
|
|
40
|
+
type ToggleShowcaseDownvoteBody = {
|
|
41
|
+
projectId: string;
|
|
42
|
+
};
|
|
43
|
+
type ToggleShowcaseDownvoteResult = ResponseData<{
|
|
44
|
+
upvotes: number;
|
|
45
|
+
isUpVoted: boolean;
|
|
46
|
+
downvotes: number;
|
|
47
|
+
isDownVoted: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* POST /api/showcase-project/downvote
|
|
51
|
+
* Requires authentication — userId is read from the session.
|
|
52
|
+
*/
|
|
53
|
+
declare const updateProjectSchema: z.ZodObject<{
|
|
54
|
+
name: z.ZodOptional<z.ZodString>;
|
|
55
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
56
|
+
githubUrl: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string, string>>;
|
|
57
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
58
|
+
description: z.ZodOptional<z.ZodString>;
|
|
59
|
+
useCases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
type UpdateShowcaseProjectBody = z.input<typeof updateProjectSchema>;
|
|
62
|
+
type UpdateShowcaseProjectResult = ResponseData<ShowcaseProjectAPI>;
|
|
63
|
+
/**
|
|
64
|
+
* PATCH /api/showcase-project/:projectId
|
|
65
|
+
* Updates an existing project. Only the owner can update.
|
|
66
|
+
*/
|
|
67
|
+
//#endregion
|
|
68
|
+
export { GetOtherShowcaseProjectsResult, GetShowcaseProjectByIdParams, GetShowcaseProjectByIdResult, GetShowcaseProjectsResult, SubmitShowcaseProjectResult, ToggleShowcaseDownvoteBody, ToggleShowcaseDownvoteResult, ToggleShowcaseUpvoteBody, ToggleShowcaseUpvoteResult, UpdateShowcaseProjectBody, UpdateShowcaseProjectResult };
|
|
69
|
+
//# sourceMappingURL=showcaseProject.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showcaseProject.controller.d.ts","names":["PaginatedResponse","ResponseData","ShowcaseProjectAPI","FastifyReply","FastifyRequest","z","SubmitShowcaseProjectResult","submitShowcaseProject","SubmitShowcaseProjectBody","Promise","Body","request","reply","GetShowcaseProjectsQuery","page","pageSize","search","selectedUseCases","isOpenSource","GetShowcaseProjectsResult","getShowcaseProjects","Querystring","GetShowcaseProjectByIdParams","projectId","GetShowcaseProjectByIdResult","getShowcaseProjectById","Params","GetOtherShowcaseProjectsQuery","excludeId","limit","GetOtherShowcaseProjectsResult","getOtherShowcaseProjects","ToggleShowcaseUpvoteBody","ToggleShowcaseUpvoteResult","upvotes","isUpVoted","downvotes","isDownVoted","toggleShowcaseUpvote","ToggleShowcaseDownvoteBody","ToggleShowcaseDownvoteResult","toggleShowcaseDownvote","updateProjectSchema","ZodString","ZodOptional","ZodURL","ZodTransform","ZodPipe","ZodArray","core","$strip","ZodObject","name","url","githubUrl","tagline","description","useCases","UpdateShowcaseProjectBody","input","UpdateShowcaseProjectParams","UpdateShowcaseProjectResult","updateShowcaseProjectHandler","DeleteShowcaseProjectParams","deleteShowcaseProjectHandler","ScanShowcaseProjectParams","scanShowcaseProject"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/showcaseProject.controller.d.ts"],"mappings":";;;;;;KAMKM,2BAAAA,GAA8BL,YAAAA,CAAaC,kBAAAA;;;;AAalC;KAETiB,yBAAAA,GAA4BnB,iBAAAA,CAAkBE,kBAAAA;;;;KAO9CoB,4BAAAA;EACHC,SAAAA;AAAAA;AAAAA,KAEGC,4BAAAA,GAA+BvB,YAAAA,CAAaC,kBAAAA;;;;KAW5C4B,8BAAAA,GAAiC7B,YAAAA,CAAaC,kBAAAA;;;;KAO9C8B,wBAAAA;EACHT,SAAAA;AAAAA;AAAAA,KAEGU,0BAAAA,GAA6BhC,YAAAA;EAChCiC,OAAAA;EACAC,SAAAA;EACAC,SAAAA;EACAC,WAAAA;AAAAA;;;;;KASGE,0BAAAA;EACHhB,SAAAA;AAAAA;AAAAA,KAEGiB,4BAAAA,GAA+BvC,YAAAA;EAClCiC,OAAAA;EACAC,SAAAA;EACAC,SAAAA;EACAC,WAAAA;AAAAA;;;;;cASYK,mBAAAA,EAAqBrC,CAAAA,CAAE8C,SAAAA;EACnCC,IAAAA,EAAM/C,CAAAA,CAAEuC,WAAAA,CAAYvC,CAAAA,CAAEsC,SAAAA;EACtBU,GAAAA,EAAKhD,CAAAA,CAAEuC,WAAAA,CAAYvC,CAAAA,CAAEwC,MAAAA;EACrBS,SAAAA,EAAWjD,CAAAA,CAAE0C,OAAAA,CAAQ1C,CAAAA,CAAEuC,WAAAA,CAAYvC,CAAAA,CAAEsC,SAAAA,GAAYtC,CAAAA,CAAEyC,YAAAA;EACnDS,OAAAA,EAASlD,CAAAA,CAAEuC,WAAAA,CAAYvC,CAAAA,CAAEsC,SAAAA;EACzBa,WAAAA,EAAanD,CAAAA,CAAEuC,WAAAA,CAAYvC,CAAAA,CAAEsC,SAAAA;EAC7Bc,QAAAA,EAAUpD,CAAAA,CAAEuC,WAAAA,CAAYvC,CAAAA,CAAE2C,QAAAA,CAAS3C,CAAAA,CAAEsC,SAAAA;AAAAA,GACpCtC,CAAAA,CAAE4C,IAAAA,CAAKC,MAAAA;AAAAA,KACLQ,yBAAAA,GAA4BrD,CAAAA,CAAEsD,KAAAA,QAAajB,mBAAAA;AAAAA,KAI3CmB,2BAAAA,GAA8B5D,YAAAA,CAAaC,kBAAAA"}
|
|
@@ -19,6 +19,8 @@ import { AddProjectBody, AddProjectResult, DeleteProjectResult, GetProjectsParam
|
|
|
19
19
|
import { AddNewAccessKeyBody, AddNewAccessKeyResponse, DeleteAccessKeyBody, DeleteAccessKeyResponse, RefreshAccessKeyBody, RefreshAccessKeyResponse } from "./controllers/projectAccessKey.controller.js";
|
|
20
20
|
import { GetRecursiveAuditStatusResult, RecursiveAuditJobInfo, RecursiveAuditPageInfo, StartRecursiveAuditResult } from "./controllers/recursiveAudit.controller.js";
|
|
21
21
|
import { SearchDocResult, SearchDocUtilParams, SearchDocUtilResult } from "./controllers/search.controller.js";
|
|
22
|
+
import { ShowcaseProject, ShowcaseProjectAPI, ShowcaseProjectStatus, ShowcaseScanDetails } from "./types/showcaseProject.types.js";
|
|
23
|
+
import { GetOtherShowcaseProjectsResult, GetShowcaseProjectByIdParams, GetShowcaseProjectByIdResult, GetShowcaseProjectsResult, SubmitShowcaseProjectResult, ToggleShowcaseDownvoteBody, ToggleShowcaseDownvoteResult, ToggleShowcaseUpvoteBody, ToggleShowcaseUpvoteResult, UpdateShowcaseProjectBody, UpdateShowcaseProjectResult } from "./controllers/showcaseProject.controller.js";
|
|
22
24
|
import { GetCheckoutSessionBody, GetCheckoutSessionResult, GetPricingBody, GetPricingResult } from "./controllers/stripe.controller.js";
|
|
23
25
|
import { AddTagBody, AddTagResult, DeleteTagParams, DeleteTagResult, GetTagsParams, GetTagsResult, UpdateTagBody, UpdateTagParams, UpdateTagResult } from "./controllers/tag.controller.js";
|
|
24
26
|
import { CreateUserBody, CreateUserResult, GetUserByEmailParams, GetUserByEmailResult, GetUserByIdParams, GetUserByIdResult, GetUsersParams, GetUsersResult, UpdateUserBody, UpdateUserResult } from "./controllers/user.controller.js";
|
|
@@ -61,7 +61,8 @@ type ProjectData = {
|
|
|
61
61
|
creatorId: User['id'];
|
|
62
62
|
configuration?: ProjectConfiguration;
|
|
63
63
|
repository?: RepositoryConnection;
|
|
64
|
-
webhooks?: ProjectConfigCI;
|
|
64
|
+
webhooks?: ProjectConfigCI; /** Screenshot of the application URL, generated automatically when applicationURL is set */
|
|
65
|
+
imageUrl?: string;
|
|
65
66
|
};
|
|
66
67
|
type AccessKeyData = {
|
|
67
68
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.types.d.ts","names":["RenameId","User","UserAPI","Organization","OrganizationAPI","IntlayerConfig","Document","Model","ObjectIdToString","Types","Token","ProjectCreationData","Project","name","ProjectConfigInternationalization","Pick","Partial","ProjectConfigEditor","ProjectConfigAI","apiKeyConfigured","Webhook","id","url","enabled","secret","ProjectConfigCI","autoTriggerBuilds","webhooks","ProjectConfiguration","internationalization","editor","ai","RepositoryProvider","BaseRepository","provider","owner","repository","branch","configFilePath","GitHubRepository","installationId","GitLabRepository","projectId","instanceUrl","BitbucketRepository","workspace","RepositoryConnection","ProjectData","organizationId","membersIds","adminsIds","creatorId","configuration","AccessKeyData","Date","grants","expiresAt","OAuth2AccessData","clientId","clientSecret","accessToken","userId","OAuth2AccessContext","ProjectAPI","user","project","organization","OAuth2Access","ObjectId","createdAt","updatedAt","OAuth2AccessAPI","oAuth2Access","ProjectSchema","ProjectModelType","ProjectDocument"],"sources":["../../../../../../../../../../apps/backend/dist/types/types/project.types.d.ts"],"mappings":";;;;;;;;KAQKW,mBAAAA;EACHE,IAAAA,EAAMD,OAAAA;AAAAA;AAAAA,KAEHE,iCAAAA,GAAoCE,OAAAA,CAAQD,IAAAA,CAAKV,cAAAA;AAAAA,KACjDY,mBAAAA,GAAsBD,OAAAA,CAAQD,IAAAA,CAAKV,cAAAA;AAAAA,KACnCa,eAAAA,GAAkBF,OAAAA,CAAQD,IAAAA,CAAKV,cAAAA;EAClCc,gBAAAA;AAAAA;AAAAA,KAEGC,OAAAA;EACHC,EAAAA;EACAR,IAAAA;EACAS,GAAAA;EACAC,OAAAA;EACAC,MAAAA;AAAAA;AAAAA,KAEGC,eAAAA;EACHC,iBAAAA;EACAC,QAAAA,GAAWP,OAAAA;AAAAA;AAAAA,KAERQ,oBAAAA;EACHC,oBAAAA,GAAuBf,iCAAAA;EACvBgB,MAAAA,GAASb,mBAAAA;EACTc,EAAAA,GAAKb,eAAAA;AAAAA;AAAAA,KAEFc,kBAAAA;AAAAA,KACAC,cAAAA;EACHC,QAAAA,EAAUF,kBAAAA;EACVG,KAAAA;EACAC,UAAAA;EACAC,MAAAA;EACAf,GAAAA;EACAgB,cAAAA;AAAAA;AAAAA,KAEGC,gBAAAA,GAAmBN,cAAAA;EACtBC,QAAAA;EACAM,cAAAA;AAAAA;AAAAA,KAEGC,gBAAAA,GAAmBR,cAAAA;EACtBC,QAAAA;EACAQ,SAAAA,WAlC6B3B;EAmC7B4B,WAAAA;AAAAA;AAAAA,KAEGC,mBAAAA,GAAsBX,cAAAA;EACzBC,QAAAA;EACAW,SAAAA;AAAAA;AAAAA,KAEGC,oBAAAA,GAAuBP,gBAAAA,GAAmBE,gBAAAA,GAAmBG,mBAAAA;AAAAA,KAC7DG,WAAAA;EACHC,cAAAA,EAAgB7C,YAAAA;EAChBU,IAAAA;EACAoC,UAAAA,EAAYhD,IAAAA;EACZiD,SAAAA,EAAWjD,IAAAA;EACXkD,SAAAA,EAAWlD,IAAAA;EACXmD,aAAAA,GAAgBxB,oBAAAA;EAChBQ,UAAAA,GAAaU,oBAAAA;EACbnB,QAAAA,GAAWF,eAAAA;AAAAA;AAAAA,
|
|
1
|
+
{"version":3,"file":"project.types.d.ts","names":["RenameId","User","UserAPI","Organization","OrganizationAPI","IntlayerConfig","Document","Model","ObjectIdToString","Types","Token","ProjectCreationData","Project","name","ProjectConfigInternationalization","Pick","Partial","ProjectConfigEditor","ProjectConfigAI","apiKeyConfigured","Webhook","id","url","enabled","secret","ProjectConfigCI","autoTriggerBuilds","webhooks","ProjectConfiguration","internationalization","editor","ai","RepositoryProvider","BaseRepository","provider","owner","repository","branch","configFilePath","GitHubRepository","installationId","GitLabRepository","projectId","instanceUrl","BitbucketRepository","workspace","RepositoryConnection","ProjectData","organizationId","membersIds","adminsIds","creatorId","configuration","imageUrl","AccessKeyData","Date","grants","expiresAt","OAuth2AccessData","clientId","clientSecret","accessToken","userId","OAuth2AccessContext","ProjectAPI","user","project","organization","OAuth2Access","ObjectId","createdAt","updatedAt","OAuth2AccessAPI","oAuth2Access","ProjectSchema","ProjectModelType","ProjectDocument"],"sources":["../../../../../../../../../../apps/backend/dist/types/types/project.types.d.ts"],"mappings":";;;;;;;;KAQKW,mBAAAA;EACHE,IAAAA,EAAMD,OAAAA;AAAAA;AAAAA,KAEHE,iCAAAA,GAAoCE,OAAAA,CAAQD,IAAAA,CAAKV,cAAAA;AAAAA,KACjDY,mBAAAA,GAAsBD,OAAAA,CAAQD,IAAAA,CAAKV,cAAAA;AAAAA,KACnCa,eAAAA,GAAkBF,OAAAA,CAAQD,IAAAA,CAAKV,cAAAA;EAClCc,gBAAAA;AAAAA;AAAAA,KAEGC,OAAAA;EACHC,EAAAA;EACAR,IAAAA;EACAS,GAAAA;EACAC,OAAAA;EACAC,MAAAA;AAAAA;AAAAA,KAEGC,eAAAA;EACHC,iBAAAA;EACAC,QAAAA,GAAWP,OAAAA;AAAAA;AAAAA,KAERQ,oBAAAA;EACHC,oBAAAA,GAAuBf,iCAAAA;EACvBgB,MAAAA,GAASb,mBAAAA;EACTc,EAAAA,GAAKb,eAAAA;AAAAA;AAAAA,KAEFc,kBAAAA;AAAAA,KACAC,cAAAA;EACHC,QAAAA,EAAUF,kBAAAA;EACVG,KAAAA;EACAC,UAAAA;EACAC,MAAAA;EACAf,GAAAA;EACAgB,cAAAA;AAAAA;AAAAA,KAEGC,gBAAAA,GAAmBN,cAAAA;EACtBC,QAAAA;EACAM,cAAAA;AAAAA;AAAAA,KAEGC,gBAAAA,GAAmBR,cAAAA;EACtBC,QAAAA;EACAQ,SAAAA,WAlC6B3B;EAmC7B4B,WAAAA;AAAAA;AAAAA,KAEGC,mBAAAA,GAAsBX,cAAAA;EACzBC,QAAAA;EACAW,SAAAA;AAAAA;AAAAA,KAEGC,oBAAAA,GAAuBP,gBAAAA,GAAmBE,gBAAAA,GAAmBG,mBAAAA;AAAAA,KAC7DG,WAAAA;EACHC,cAAAA,EAAgB7C,YAAAA;EAChBU,IAAAA;EACAoC,UAAAA,EAAYhD,IAAAA;EACZiD,SAAAA,EAAWjD,IAAAA;EACXkD,SAAAA,EAAWlD,IAAAA;EACXmD,aAAAA,GAAgBxB,oBAAAA;EAChBQ,UAAAA,GAAaU,oBAAAA;EACbnB,QAAAA,GAAWF,eAAAA,EAxCO;EAyClB4B,QAAAA;AAAAA;AAAAA,KAEGC,aAAAA;EACHzC,IAAAA;EACA2C,MAAAA;EACAC,SAAAA,GAAYF,IAAAA;AAAAA;AAAAA,KAETG,gBAAAA,GAAmBJ,aAAAA;EACtBK,QAAAA;EACAC,YAAAA;EACAC,WAAAA;EACAC,MAAAA,EAAQ7D,IAAAA;AAAAA;AAAAA,KASLmE,YAAAA,GAAeV,gBAAAA;EAClBrC,EAAAA,EAAIZ,KAAAA,CAAM4D,QAAAA;EACVC,SAAAA;EACAC,SAAAA;AAAAA;AAAAA,KAGG3D,OAAAA,GAAUmC,WAAAA;EACb1B,EAAAA,EAAIZ,KAAAA,CAAM4D,QAAAA;EACVC,SAAAA;EACAC,SAAAA;EACAE,YAAAA,EAAcL,YAAAA;AAAAA;AAAAA,KAEXJ,UAAAA,GAAaxD,gBAAAA,CAAiBI,OAAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Document, Types } from "mongoose";
|
|
2
|
+
|
|
3
|
+
//#region ../../../apps/backend/dist/types/types/showcaseProject.types.d.ts
|
|
4
|
+
//#region src/types/showcaseProject.types.d.ts
|
|
5
|
+
interface ShowcaseScanDetails {
|
|
6
|
+
score: number;
|
|
7
|
+
langTag: string;
|
|
8
|
+
htmlDir: string;
|
|
9
|
+
hreflangs: string[];
|
|
10
|
+
hasXDefault: boolean;
|
|
11
|
+
hasCanonical: boolean;
|
|
12
|
+
hasLocalizedLinks: boolean;
|
|
13
|
+
allAnchorsLocalized: boolean;
|
|
14
|
+
robotsTxt: {
|
|
15
|
+
accessible: boolean;
|
|
16
|
+
disallowWithoutLocaleAlternates: boolean;
|
|
17
|
+
};
|
|
18
|
+
sitemapXml: {
|
|
19
|
+
urlsDiscoveredCount: number;
|
|
20
|
+
alternatesPresent: boolean;
|
|
21
|
+
xDefaultPresent: boolean;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
type ShowcaseProjectStatus = 'pending_scan' | 'active' | 'scan_failed';
|
|
25
|
+
interface ShowcaseProject {
|
|
26
|
+
_id: Types.ObjectId;
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
imageUrl: string;
|
|
30
|
+
logoUrl?: string;
|
|
31
|
+
websiteUrl: string;
|
|
32
|
+
githubUrl?: string;
|
|
33
|
+
tags: string[];
|
|
34
|
+
upvoters: string[];
|
|
35
|
+
downvoters: string[];
|
|
36
|
+
isOpenSource: boolean;
|
|
37
|
+
createdAt: Date;
|
|
38
|
+
intlayerVersion?: string;
|
|
39
|
+
libsUsed: string[];
|
|
40
|
+
/** Map of package name → version for all detected intlayer-related packages */
|
|
41
|
+
packageDetails?: Record<string, string>;
|
|
42
|
+
lastScanDate?: Date;
|
|
43
|
+
scanDetails?: ShowcaseScanDetails;
|
|
44
|
+
owner?: string;
|
|
45
|
+
status?: ShowcaseProjectStatus;
|
|
46
|
+
}
|
|
47
|
+
interface ShowcaseProjectAPI extends Omit<ShowcaseProject, '_id' | 'createdAt' | 'lastScanDate' | 'upvoters' | 'downvoters'> {
|
|
48
|
+
id: string;
|
|
49
|
+
upvotes: number;
|
|
50
|
+
isUpVoted: boolean;
|
|
51
|
+
downvotes: number;
|
|
52
|
+
isDownVoted: boolean;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
lastScanDate?: string;
|
|
55
|
+
isOwner?: boolean;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { ShowcaseProject, ShowcaseProjectAPI, ShowcaseProjectStatus, ShowcaseScanDetails };
|
|
59
|
+
//# sourceMappingURL=showcaseProject.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showcaseProject.types.d.ts","names":["Document","Model","Types","ShowcaseScanDetails","score","langTag","htmlDir","hreflangs","hasXDefault","hasCanonical","hasLocalizedLinks","allAnchorsLocalized","robotsTxt","accessible","disallowWithoutLocaleAlternates","sitemapXml","urlsDiscoveredCount","alternatesPresent","xDefaultPresent","ShowcaseProjectStatus","ShowcaseProject","ObjectId","Date","Record","_id","title","description","imageUrl","logoUrl","websiteUrl","githubUrl","tags","upvoters","downvoters","isOpenSource","createdAt","intlayerVersion","libsUsed","packageDetails","lastScanDate","scanDetails","owner","status","ShowcaseProjectData","ShowcaseProjectAPI","Omit","id","upvotes","isUpVoted","downvotes","isDownVoted","isOwner","ShowcaseProjectDocument","ShowcaseProjectModelType"],"sources":["../../../../../../../../../../apps/backend/dist/types/types/showcaseProject.types.d.ts"],"mappings":";;;;UAGUG,mBAAAA;EACRC,KAAAA;EACAC,OAAAA;EACAC,OAAAA;EACAC,SAAAA;EACAC,WAAAA;EACAC,YAAAA;EACAC,iBAAAA;EACAC,mBAAAA;EACAC,SAAAA;IACEC,UAAAA;IACAC,+BAAAA;EAAAA;EAEFC,UAAAA;IACEC,mBAAAA;IACAC,iBAAAA;IACAC,eAAAA;EAAAA;AAAAA;AAAAA,KAGCC,qBAAAA;AAAAA,UACKC,eAAAA;EACRI,GAAAA,EAAKtB,KAAAA,CAAMmB,QAAAA;EACXI,KAAAA;EACAC,WAAAA;EACAC,QAAAA;EACAC,OAAAA;EACAC,UAAAA;EACAC,SAAAA;EACAC,IAAAA;EACAC,QAAAA;EACAC,UAAAA;EACAC,YAAAA;EACAC,SAAAA,EAAWb,IAAAA;EACXc,eAAAA;EACAC,QAAAA;EAM8B;EAJ9BC,cAAAA,GAAiBf,MAAAA;EACjBgB,YAAAA,GAAejB,IAAAA;EACfkB,WAAAA,GAAcrC,mBAAAA;EACdsC,KAAAA;EACAC,MAAAA,GAASvB,qBAAAA;AAAAA;AAAAA,UAkBDyB,kBAAAA,SAA2BC,IAAAA,CAAKzB,eAAAA;EACxC0B,EAAAA;EACAC,OAAAA;EACAC,SAAAA;EACAC,SAAAA;EACAC,WAAAA;EACAf,SAAAA;EACAI,YAAAA;EACAY,OAAAA;AAAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"mappings":";;;;;;;cAOa,wBAAA,GACX,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDistantDictionary.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchDistantDictionary.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"mappings":";;;;;;;cAOa,sBAAA,GACX,aAAA,UACA,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { AIOptions, ChatCompletionRequestMessage } from "../packages/@intlayer/ai/dist/types/aiSdk.js";
|
|
2
|
+
import { AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationFieldResult, AuditContentDeclarationMetadataBody, AuditContentDeclarationMetadataResult, AuditContentDeclarationResult, AuditTagBody, AuditTagResult, AutocompleteResponse, CustomQueryBody, CustomQueryResult, GetDiscussionsParams, GetDiscussionsResult, TranslateJSONBody, TranslateJSONResult } from "../apps/backend/dist/types/controllers/ai.controller.js";
|
|
1
3
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { AIOptions, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationMetadataBody, AuditTagBody, ChatCompletionRequestMessage, CustomQueryBody, GetDiscussionsParams, TranslateJSONBody } from "@intlayer/backend";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/ai.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/ai.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/ai.ts"],"mappings":";;;;;;KAwBY,gBAAA;EACV,IAAA;EACA,SAAA,GAAY,SAAA;EACZ,aAAA;EACA,WAAA;EACA,YAAA;AAAA;AAAA,KAGU,kBAAA;EACV,QAAA,EAAU,4BAAA;EACV,YAAA;EACA,SAAA,IAAa,KAAA;EACb,MAAA,IAAU,QAAA,EAAU,oBAAA;AAAA;AAAA,cAKT,QAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;uBAmBR,eAAA,EAAe,YAAA,GACR,cAAA,KAAc,OAAA,CAAA,iBAAA;yBAkBrB,iBAAA,EAAiB,YAAA,GACV,cAAA,KAAc,OAAA,CAAA,mBAAA;mCAkBrB,2BAAA,EAA2B,YAAA,GACpB,cAAA,KAAc,OAAA,CAAA,6BAAA;wCAkBrB,gCAAA,EAAgC,YAAA,GACzB,cAAA,KAAc,OAAA,CAAA,kCAAA;2CAkBrB,mCAAA,EAAmC,YAAA,GAC5B,cAAA,KAAc,OAAA,CAAA,qCAAA;oBAkBrB,YAAA,EAAY,YAAA,GACL,cAAA,KAAc,OAAA,CAAA,cAAA;0BAgCrB,kBAAA,EAAkB,YAAA,GACX,cAAA,KAAc,OAAA;wBAuFrB,gBAAA,EAAgB,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,oBAAA;4BAgBnB,oBAAA,EAAoB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,oBAAA;AAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { GetRecursiveAuditStatusResult, StartRecursiveAuditResult } from "../apps/backend/dist/types/controllers/recursiveAudit.controller.js";
|
|
2
|
+
import { AuditEvent } from "../apps/backend/dist/types/services/audit/types.js";
|
|
1
3
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { AuditEvent, GetRecursiveAuditStatusResult, StartRecursiveAuditResult } from "@intlayer/backend";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/audit.d.ts
|
|
@@ -8,17 +9,37 @@ type ScanUrlBody = {
|
|
|
8
9
|
onMessage?: (event: AuditEvent) => void;
|
|
9
10
|
onDone?: () => void;
|
|
10
11
|
};
|
|
12
|
+
type DiscoverUrlsParams = {
|
|
13
|
+
url: string;
|
|
14
|
+
};
|
|
15
|
+
type DiscoverUrlsResult = {
|
|
16
|
+
urls: string[];
|
|
17
|
+
};
|
|
11
18
|
type StartRecursiveAuditBody = {
|
|
12
19
|
url: string;
|
|
20
|
+
urls?: string[];
|
|
13
21
|
};
|
|
14
22
|
type GetRecursiveAuditStatusParams = {
|
|
15
23
|
jobId: string;
|
|
16
24
|
};
|
|
25
|
+
type RecursiveAuditJobParams = {
|
|
26
|
+
jobId: string;
|
|
27
|
+
};
|
|
17
28
|
declare const getAuditAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
29
|
+
discoverUrls: (params?: DiscoverUrlsParams, otherOptions?: FetcherOptions) => Promise<DiscoverUrlsResult>;
|
|
18
30
|
scanUrl: (body?: ScanUrlBody, otherOptions?: FetcherOptions) => Promise<void>;
|
|
19
31
|
startRecursiveAudit: (body?: StartRecursiveAuditBody, otherOptions?: FetcherOptions) => Promise<StartRecursiveAuditResult>;
|
|
20
32
|
getRecursiveAuditStatus: (params?: GetRecursiveAuditStatusParams, otherOptions?: FetcherOptions) => Promise<GetRecursiveAuditStatusResult>;
|
|
33
|
+
cancelRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
|
|
34
|
+
success: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
pauseRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
|
|
37
|
+
success: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
resumeRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
|
|
40
|
+
success: boolean;
|
|
41
|
+
}>;
|
|
21
42
|
};
|
|
22
43
|
//#endregion
|
|
23
|
-
export { type AuditEvent, GetRecursiveAuditStatusParams, type GetRecursiveAuditStatusResult, ScanUrlBody, StartRecursiveAuditBody, type StartRecursiveAuditResult, getAuditAPI };
|
|
44
|
+
export { type AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, type GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, type StartRecursiveAuditResult, getAuditAPI };
|
|
24
45
|
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"audit.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":";;;;;;KAeY,WAAA;EACV,GAAA;EACA,SAAA,IAAa,KAAA,EAAO,UAAA;EACpB,MAAA;AAAA;AAAA,KAGU,kBAAA;EACV,GAAA;AAAA;AAAA,KAGU,kBAAA;EACV,IAAA;AAAA;AAAA,KAGU,uBAAA;EACV,GAAA;EACA,IAAA;AAAA;AAAA,KAGU,6BAAA;EACV,KAAA;AAAA;AAAA,KAGU,uBAAA;EACV,KAAA;AAAA;AAAA,cAGW,WAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;0BA0BN,kBAAA,EAAkB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,kBAAA;mBAarB,WAAA,EAAW,YAAA,GACJ,cAAA,KAAc,OAAA;+BAsErB,uBAAA,EAAuB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,yBAAA;qCAiBnB,6BAAA,EAA6B,YAAA,GACxB,cAAA,KAAc,OAAA,CAAA,6BAAA;kCAYnB,uBAAA,EAAuB,YAAA,GAClB,cAAA,KAAc,OAAA;;;iCAUnB,uBAAA,EAAuB,YAAA,GAClB,cAAA,KAAc,OAAA;;;kCAUnB,uBAAA,EAAuB,YAAA,GAClB,cAAA,KAAc,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AddDictionaryBody, AddDictionaryResult, DeleteDictionaryParam, DeleteDictionaryResult, GetDictionariesKeysResult, GetDictionariesParams, GetDictionariesResult, GetDictionariesUpdateTimestampResult, GetDictionaryParams, GetDictionaryQuery, GetDictionaryResult, PushDictionariesBody, PushDictionariesResult, UpdateDictionaryBody, UpdateDictionaryResult } from "../apps/backend/dist/types/controllers/dictionary.controller.js";
|
|
1
2
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { AddDictionaryBody, DeleteDictionaryParam, GetDictionariesParams, GetDictionaryParams, GetDictionaryQuery, PushDictionariesBody, UpdateDictionaryBody } from "@intlayer/backend";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/getIntlayerAPI/dictionary.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { GetConfigurationResult } from "../intlayer-editor/server/dist/controllers/configuration.controller.js";
|
|
3
|
-
import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "../intlayer-editor/server/dist/controllers/dictionary.controller.js";
|
|
2
|
+
import { GetConfigurationResult } from "../packages/intlayer-editor/server/dist/controllers/configuration.controller.js";
|
|
3
|
+
import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "../packages/intlayer-editor/server/dist/controllers/dictionary.controller.js";
|
|
4
4
|
import { IntlayerConfig } from "@intlayer/types";
|
|
5
5
|
|
|
6
6
|
//#region src/getIntlayerAPI/editor.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { NewsletterSubscriptionBody, NewsletterSubscriptionResult, NewsletterUnsubscriptionBody } from "../apps/backend/dist/types/controllers/newsletter.controller.js";
|
|
1
2
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from "@intlayer/backend";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/getIntlayerAPI/newsletter.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/oAuth.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"oAuth.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/oAuth.ts"],"mappings":";;;;;cAQa,WAAA,GAAe,cAAA,GAAiB,cAAA;wCAeO,cAAA,KAAc,OAAA,CAAA,oBAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AddOrganizationBody, AddOrganizationMemberBody, AddOrganizationMemberResult, AddOrganizationResult, DeleteOrganizationResult, GetOrganizationParam, GetOrganizationResult, GetOrganizationsParams, GetOrganizationsResult, SelectOrganizationParam, SelectOrganizationResult, UnselectOrganizationResult, UpdateOrganizationBody, UpdateOrganizationMembersBody, UpdateOrganizationMembersResult, UpdateOrganizationResult } from "../apps/backend/dist/types/controllers/organization.controller.js";
|
|
1
2
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMembersBody } from "@intlayer/backend";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/getIntlayerAPI/organization.d.ts
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ResponseData } from "../apps/backend/dist/types/utils/responseData.js";
|
|
2
|
+
import { AddProjectBody, AddProjectResult, DeleteProjectResult, GetProjectsParams, GetProjectsResult, PushProjectConfigurationBody, PushProjectConfigurationResult, SelectProjectParam, SelectProjectResult, TriggerBuildResult, TriggerWebhookBody, TriggerWebhookResult, UnselectProjectResult, UpdateProjectBody, UpdateProjectMembersBody, UpdateProjectMembersResult, UpdateProjectResult } from "../apps/backend/dist/types/controllers/project.controller.js";
|
|
3
|
+
import { AddNewAccessKeyBody, AddNewAccessKeyResponse, DeleteAccessKeyBody, DeleteAccessKeyResponse, RefreshAccessKeyBody, RefreshAccessKeyResponse } from "../apps/backend/dist/types/controllers/projectAccessKey.controller.js";
|
|
1
4
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, TriggerWebhookBody, UpdateProjectBody, UpdateProjectMembersBody } from "@intlayer/backend";
|
|
3
5
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
6
|
|
|
5
7
|
//#region src/getIntlayerAPI/project.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"mappings":";;;;;;;cA8Ba,aAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;0BAkBL,iBAAA,EAAiB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,iBAAA;wBAkBnB,cAAA,EAAc,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,gBAAA;2BAiBnB,iBAAA,EAAiB,YAAA,GACZ,cAAA,KAAc,OAAA,CAAA,mBAAA;+BAiBtB,wBAAA,EAAwB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,0BAAA;mDAgBN,4BAAA,EAA4B,YAAA,GACpC,cAAA,KAAc,OAAA,CAAA,8BAAA;iCAgBa,cAAA,KAAc,OAAA,CAAA,mBAAA;6BAe5C,kBAAA,eAA+B,YAAA,GAC5B,cAAA,KAAc,OAAA,CAAA,mBAAA;mCAee,cAAA,KAAc,OAAA,CAAA,qBAAA;+BAiB9C,mBAAA,EAAmB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,uBAAA;8BAmBlB,mBAAA,cAA+B,YAAA,GAC3B,cAAA,KAAc,OAAA,CAAA,uBAAA;+BAmBlB,oBAAA,cAAgC,YAAA,GAC5B,cAAA,KAAc,OAAA,CAAA,wBAAA;gCAiBY,cAAA,KAAc,OAAA,CAAA,kBAAA;iCAiBxC,kBAAA,kBAAkC,YAAA,GAClC,cAAA,KAAc,OAAA,CAAA,oBAAA;+BAiBW,cAAA,KAAc,OAAA,CAAA,YAAA;gCAeb,cAAA,KAAc,OAAA,CAAA,YAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { SearchDocUtilParams, SearchDocUtilResult } from "../apps/backend/dist/types/controllers/search.controller.js";
|
|
1
2
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { SearchDocUtilParams } from "@intlayer/backend";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/getIntlayerAPI/search.d.ts
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GetOtherShowcaseProjectsResult, GetShowcaseProjectByIdParams, GetShowcaseProjectByIdResult, GetShowcaseProjectsResult, SubmitShowcaseProjectResult, ToggleShowcaseDownvoteBody, ToggleShowcaseDownvoteResult, ToggleShowcaseUpvoteBody, ToggleShowcaseUpvoteResult, UpdateShowcaseProjectBody, UpdateShowcaseProjectResult } from "../apps/backend/dist/types/controllers/showcaseProject.controller.js";
|
|
1
2
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
3
|
import { IntlayerConfig } from "@intlayer/types";
|
|
3
4
|
|
|
@@ -9,20 +10,24 @@ type ShowcaseProjectsQuery = {
|
|
|
9
10
|
selectedUseCases?: string[];
|
|
10
11
|
isOpenSource?: boolean;
|
|
11
12
|
};
|
|
12
|
-
type
|
|
13
|
-
|
|
13
|
+
type OtherShowcaseProjectsQuery = {
|
|
14
|
+
excludeId: string;
|
|
15
|
+
limit?: number;
|
|
14
16
|
};
|
|
15
17
|
declare const getShowcaseProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
16
|
-
getShowcaseProjects: (query?: ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<
|
|
17
|
-
getShowcaseProjectById: (projectId:
|
|
18
|
-
getOtherShowcaseProjects: (
|
|
19
|
-
|
|
18
|
+
getShowcaseProjects: (query?: ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectsResult>;
|
|
19
|
+
getShowcaseProjectById: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectByIdResult>;
|
|
20
|
+
getOtherShowcaseProjects: (query: OtherShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetOtherShowcaseProjectsResult>;
|
|
21
|
+
submitShowcaseProject: (body: SubmitShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<SubmitShowcaseProjectResult>;
|
|
22
|
+
toggleShowcaseUpvote: (body: ToggleShowcaseUpvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseUpvoteResult>;
|
|
23
|
+
toggleShowcaseDownvote: (body: ToggleShowcaseDownvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseDownvoteResult>;
|
|
24
|
+
deleteShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<{
|
|
20
25
|
data: {
|
|
21
|
-
|
|
22
|
-
isLiked: boolean;
|
|
26
|
+
success: boolean;
|
|
23
27
|
};
|
|
24
28
|
}>;
|
|
29
|
+
updateShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], body: UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>;
|
|
25
30
|
};
|
|
26
31
|
//#endregion
|
|
27
|
-
export {
|
|
32
|
+
export { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI };
|
|
28
33
|
//# sourceMappingURL=showcaseProject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showcaseProject.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"showcaseProject.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"mappings":";;;;;KAoBY,qBAAA;EACV,IAAA;EACA,QAAA;EACA,MAAA;EACA,gBAAA;EACA,YAAA;AAAA;AAAA,KAGU,0BAAA;EACV,SAAA;EACA,KAAA;AAAA;AAAA,cAGW,qBAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;gCAcP,qBAAA,EAAqB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,yBAAA;sCAoBjB,4BAAA,eAAyC,YAAA,GACtC,cAAA,KAAc,OAAA,CAAA,4BAAA;oCAUrB,0BAAA,EAA0B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,8BAAA;gCAatB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;+BAUtB,wBAAA,EAAwB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,0BAAA;iCAUtB,0BAAA,EAA0B,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,4BAAA;qCAUjB,4BAAA,eAAyC,YAAA,GACtC,cAAA,KAAc,OAAA;;MAEJ,OAAA;IAAA;EAAA;qCAQb,4BAAA,eAAyC,IAAA,EAC9C,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { GetCheckoutSessionBody, GetCheckoutSessionResult, GetPricingBody, GetPricingResult } from "../apps/backend/dist/types/controllers/stripe.controller.js";
|
|
1
2
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { GetCheckoutSessionBody, GetPricingBody } from "@intlayer/backend";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/getIntlayerAPI/stripe.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AddTagBody, AddTagResult, DeleteTagParams, DeleteTagResult, GetTagsParams, GetTagsResult, UpdateTagBody, UpdateTagParams, UpdateTagResult } from "../apps/backend/dist/types/controllers/tag.controller.js";
|
|
1
2
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { AddTagBody, DeleteTagParams, GetTagsParams, UpdateTagBody, UpdateTagParams } from "@intlayer/backend";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/getIntlayerAPI/tag.d.ts
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { UserAPI } from "../apps/backend/dist/types/types/user.types.js";
|
|
2
|
+
import { ResponseData } from "../apps/backend/dist/types/utils/responseData.js";
|
|
3
|
+
import { CreateUserBody, CreateUserResult, GetUserByEmailParams, GetUserByEmailResult, GetUserByIdParams, GetUserByIdResult, GetUsersParams, GetUsersResult, UpdateUserBody, UpdateUserResult } from "../apps/backend/dist/types/controllers/user.controller.js";
|
|
1
4
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { CreateUserBody, GetUserByEmailParams, GetUserByIdParams, GetUsersParams, UpdateUserBody, UserAPI } from "@intlayer/backend";
|
|
3
5
|
import { IntlayerConfig } from "@intlayer/types";
|
|
4
6
|
|
|
5
7
|
//#region src/getIntlayerAPI/user.d.ts
|
|
@@ -7,11 +9,12 @@ type GetUserByAccountParams = {
|
|
|
7
9
|
providerAccountId: string;
|
|
8
10
|
provider: string;
|
|
9
11
|
};
|
|
12
|
+
type GetUserByAccountResult = ResponseData<UserAPI>;
|
|
10
13
|
declare const getUserAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
11
14
|
createUser: (user: CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>;
|
|
12
15
|
getUsers: (filters?: GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>;
|
|
13
16
|
getUserById: (userId: GetUserByIdParams["userId"], otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>;
|
|
14
|
-
getUserByAccount: (providerAccountId: GetUserByAccountParams["providerAccountId"], provider: GetUserByAccountParams["provider"], otherOptions?: FetcherOptions) => Promise<
|
|
17
|
+
getUserByAccount: (providerAccountId: GetUserByAccountParams["providerAccountId"], provider: GetUserByAccountParams["provider"], otherOptions?: FetcherOptions) => Promise<GetUserByAccountResult>;
|
|
15
18
|
getUserByEmail: (email: GetUserByEmailParams["email"], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>;
|
|
16
19
|
updateUser: (user: UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
17
20
|
deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/user.ts"],"mappings":";;;;;;;KAiBK,sBAAA;EAA2B,iBAAA;EAA2B,QAAA;AAAA;AAAA,KACtD,sBAAA,GAAyE,YAAA,CAAP,OAAA;AAAA,cAE1D,UAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;qBA8FT,cAAA,EAAc,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,gBAAA;uBA5ElB,cAAA,EAAc,YAAA,GACV,cAAA,KAAc,OAAA,CAAA,cAAA;wBAmBpB,iBAAA,YAA2B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,iBAAA;wCAmCT,sBAAA,uBAA2C,QAAA,EACpD,sBAAA,cAAkC,YAAA,GAC9B,cAAA,KAAc,OAAA,CAAA,sBAAA;0BApBrB,oBAAA,WAA6B,YAAA,GACtB,cAAA,KAAc,OAAA,CAAA,oBAAA;qBAuDtB,cAAA,EAAc,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,gBAAA;+BAkBd,YAAA,GACA,cAAA,KAAc,OAAA,CAAA,gBAAA;6CAgBoB,OAAA;AAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { AIOptions } from "./packages/@intlayer/ai/dist/types/aiSdk.js";
|
|
2
|
+
import { AskDocQuestionResult } from "./apps/backend/dist/types/controllers/ai.controller.js";
|
|
3
|
+
import { GetRecursiveAuditStatusResult, StartRecursiveAuditResult } from "./apps/backend/dist/types/controllers/recursiveAudit.controller.js";
|
|
4
|
+
import { AuditEvent } from "./apps/backend/dist/types/services/audit/types.js";
|
|
1
5
|
import { fetchDistantDictionaries } from "./distantDictionary/fetchDistantDictionaries.js";
|
|
2
6
|
import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.js";
|
|
3
7
|
import { FetcherOptions, fetcher, fetcherOptions } from "./fetcher.js";
|
|
4
|
-
import { AskDocQuestionBody,
|
|
5
|
-
import {
|
|
8
|
+
import { AskDocQuestionBody, AutocompleteBody, getAiAPI } from "./getIntlayerAPI/ai.js";
|
|
9
|
+
import { DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, getAuditAPI } from "./getIntlayerAPI/audit.js";
|
|
6
10
|
import { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI } from "./getIntlayerAPI/bitbucket.js";
|
|
7
11
|
import { getDictionaryAPI } from "./getIntlayerAPI/dictionary.js";
|
|
8
12
|
import { getEditorAPI } from "./getIntlayerAPI/editor.js";
|
|
@@ -18,5 +22,4 @@ import { getTagAPI } from "./getIntlayerAPI/tag.js";
|
|
|
18
22
|
import { getUserAPI } from "./getIntlayerAPI/user.js";
|
|
19
23
|
import { IntlayerAPI, getIntlayerAPI } from "./getIntlayerAPI/index.js";
|
|
20
24
|
import { IntlayerAPIProxy, getIntlayerAPIProxy } from "./proxy.js";
|
|
21
|
-
|
|
22
|
-
export { AIOptions, AskDocQuestionBody, AskDocQuestionResult, AuditEvent, AutocompleteBody, BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, FetcherOptions, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubListReposResult, GitHubRepository, GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, IntlayerAPI, IntlayerAPIProxy, ScanUrlBody, StartRecursiveAuditBody, StartRecursiveAuditResult, fetchDistantDictionaries, fetchDistantDictionary, fetcher, fetcherOptions, getAiAPI, getAuditAPI, getBitbucketAPI, getDictionaryAPI, getEditorAPI, getGithubAPI, getGitlabAPI, getIntlayerAPI, getIntlayerAPIProxy, getNewsletterAPI, getOAuthAPI, getOrganizationAPI, getProjectAPI, getSearchAPI, getStripeAPI, getTagAPI, getUserAPI };
|
|
25
|
+
export { AIOptions, AskDocQuestionBody, AskDocQuestionResult, AuditEvent, AutocompleteBody, BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, DiscoverUrlsParams, DiscoverUrlsResult, FetcherOptions, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubListReposResult, GitHubRepository, GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, IntlayerAPI, IntlayerAPIProxy, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, StartRecursiveAuditResult, fetchDistantDictionaries, fetchDistantDictionary, fetcher, fetcherOptions, getAiAPI, getAuditAPI, getBitbucketAPI, getDictionaryAPI, getEditorAPI, getGithubAPI, getGitlabAPI, getIntlayerAPI, getIntlayerAPIProxy, getNewsletterAPI, getOAuthAPI, getOrganizationAPI, getProjectAPI, getSearchAPI, getStripeAPI, getTagAPI, getUserAPI };
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AIOptions } from "
|
|
1
|
+
import { AIOptions } from "./packages/@intlayer/ai/dist/types/aiSdk.js";
|
|
2
2
|
export { type AIOptions };
|
package/package.json
CHANGED