@intlayer/api
Advanced tools
| var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require(`./getIntlayerAPI/ai.cjs`),l=require(`./getIntlayerAPI/audit.cjs`),u=require(`./getIntlayerAPI/bitbucket.cjs`),d=require(`./getIntlayerAPI/dictionary.cjs`),f=require(`./getIntlayerAPI/editor.cjs`),p=require(`./getIntlayerAPI/github.cjs`),m=require(`./getIntlayerAPI/gitlab.cjs`),h=require(`./getIntlayerAPI/newsletter.cjs`),g=require(`./getIntlayerAPI/oAuth.cjs`),_=require(`./getIntlayerAPI/organization.cjs`),v=require(`./getIntlayerAPI/project.cjs`),y=require(`./getIntlayerAPI/search.cjs`),b=require(`./getIntlayerAPI/showcaseProject.cjs`),x=require(`./getIntlayerAPI/stripe.cjs`),S=require(`./getIntlayerAPI/tag.cjs`),C=require(`./getIntlayerAPI/user.cjs`);let w=require(`@intlayer/config/built`);w=s(w);let T=require(`defu`);const E=(e={},t)=>{let n=(0,T.defu)(t??{},w.default);return{organization:_.getOrganizationAPI(e,n),project:v.getProjectAPI(e,n),user:C.getUserAPI(e,n),oAuth:g.getOAuthAPI(n),dictionary:d.getDictionaryAPI(e,n),stripe:x.getStripeAPI(e,n),ai:c.getAiAPI(e,n),audit:l.getAuditAPI(e,n),tag:S.getTagAPI(e,n),search:y.getSearchAPI(e,n),editor:f.getEditorAPI(e,n),newsletter:h.getNewsletterAPI(e,n),github:p.getGithubAPI(e,n),gitlab:m.getGitlabAPI(e,n),bitbucket:u.getBitbucketAPI(e,n),showcaseProject:b.getShowcaseProjectAPI(e,n)}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return E}}); | ||
| //# sourceMappingURL=getIntlayerAPI-CUu2tiLP.cjs.map |
| {"version":3,"file":"getIntlayerAPI-CUu2tiLP.cjs","names":["builtConfiguration","getOrganizationAPI","getProjectAPI","getUserAPI","getOAuthAPI","getDictionaryAPI","getStripeAPI","getAiAPI","getAuditAPI","getTagAPI","getSearchAPI","getEditorAPI","getNewsletterAPI","getGithubAPI","getGitlabAPI","getBitbucketAPI","getShowcaseProjectAPI"],"sources":["../../src/getIntlayerAPI/index.ts"],"sourcesContent":["import builtConfiguration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport { defu } from 'defu';\nimport type { FetcherOptions } from '../fetcher';\nimport { getAiAPI } from './ai';\nimport { getAuditAPI } from './audit';\nimport { getBitbucketAPI } from './bitbucket';\nimport { getDictionaryAPI } from './dictionary';\nimport { getEditorAPI } from './editor';\nimport { getGithubAPI } from './github';\nimport { getGitlabAPI } from './gitlab';\nimport { getNewsletterAPI } from './newsletter';\nimport { getOAuthAPI } from './oAuth';\nimport { getOrganizationAPI } from './organization';\nimport { getProjectAPI } from './project';\nimport { getSearchAPI } from './search';\nimport { getShowcaseProjectAPI } from './showcaseProject';\nimport { getStripeAPI } from './stripe';\nimport { getTagAPI } from './tag';\nimport { getUserAPI } from './user';\n\ninterface IntlayerAPIReturn {\n organization: ReturnType<typeof getOrganizationAPI>;\n project: ReturnType<typeof getProjectAPI>;\n user: ReturnType<typeof getUserAPI>;\n oAuth: ReturnType<typeof getOAuthAPI>;\n dictionary: ReturnType<typeof getDictionaryAPI>;\n stripe: ReturnType<typeof getStripeAPI>;\n ai: ReturnType<typeof getAiAPI>;\n audit: ReturnType<typeof getAuditAPI>;\n tag: ReturnType<typeof getTagAPI>;\n search: ReturnType<typeof getSearchAPI>;\n editor: ReturnType<typeof getEditorAPI>;\n newsletter: ReturnType<typeof getNewsletterAPI>;\n github: ReturnType<typeof getGithubAPI>;\n gitlab: ReturnType<typeof getGitlabAPI>;\n bitbucket: ReturnType<typeof getBitbucketAPI>;\n showcaseProject: ReturnType<typeof getShowcaseProjectAPI>;\n}\n\nexport const getIntlayerAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPIReturn => {\n const resolvedConfig = defu(\n intlayerConfig ?? {},\n builtConfiguration\n ) as IntlayerConfig;\n\n return {\n organization: getOrganizationAPI(authAPIOptions, resolvedConfig),\n project: getProjectAPI(authAPIOptions, resolvedConfig),\n user: getUserAPI(authAPIOptions, resolvedConfig),\n oAuth: getOAuthAPI(resolvedConfig),\n dictionary: getDictionaryAPI(authAPIOptions, resolvedConfig),\n stripe: getStripeAPI(authAPIOptions, resolvedConfig),\n ai: getAiAPI(authAPIOptions, resolvedConfig),\n audit: getAuditAPI(authAPIOptions, resolvedConfig),\n tag: getTagAPI(authAPIOptions, resolvedConfig),\n search: getSearchAPI(authAPIOptions, resolvedConfig),\n editor: getEditorAPI(authAPIOptions, resolvedConfig),\n newsletter: getNewsletterAPI(authAPIOptions, resolvedConfig),\n github: getGithubAPI(authAPIOptions, resolvedConfig),\n gitlab: getGitlabAPI(authAPIOptions, resolvedConfig),\n bitbucket: getBitbucketAPI(authAPIOptions, resolvedConfig),\n showcaseProject: getShowcaseProjectAPI(authAPIOptions, resolvedConfig),\n };\n};\n\nexport type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;\n"],"mappings":"ysCAwCA,MAAa,GACX,EAAiC,EAAE,CACnC,IACsB,CACtB,IAAM,GAAA,EAAA,EAAA,MACJ,GAAkB,EAAE,CACpBA,EAAAA,QACD,CAED,MAAO,CACL,aAAcC,EAAAA,mBAAmB,EAAgB,EAAe,CAChE,QAASC,EAAAA,cAAc,EAAgB,EAAe,CACtD,KAAMC,EAAAA,WAAW,EAAgB,EAAe,CAChD,MAAOC,EAAAA,YAAY,EAAe,CAClC,WAAYC,EAAAA,iBAAiB,EAAgB,EAAe,CAC5D,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,GAAIC,EAAAA,SAAS,EAAgB,EAAe,CAC5C,MAAOC,EAAAA,YAAY,EAAgB,EAAe,CAClD,IAAKC,EAAAA,UAAU,EAAgB,EAAe,CAC9C,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,WAAYC,EAAAA,iBAAiB,EAAgB,EAAe,CAC5D,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,UAAWC,EAAAA,gBAAgB,EAAgB,EAAe,CAC1D,gBAAiBC,EAAAA,sBAAsB,EAAgB,EAAe,CACvE"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { AIOptions, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationMetadataBody, AuditTagBody, ChatCompletionRequestMessage, CustomQueryBody, GetDiscussionsParams, TranslateJSONBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/ai.d.ts | ||
| type AutocompleteBody = { | ||
| text: string; | ||
| aiOptions?: AIOptions; | ||
| contextBefore?: string; | ||
| currentLine?: string; | ||
| contextAfter?: string; | ||
| }; | ||
| type AskDocQuestionBody = { | ||
| messages: ChatCompletionRequestMessage[]; | ||
| discussionId: string; | ||
| onMessage?: (chunk: string) => void; | ||
| onDone?: (response: AskDocQuestionResult) => void; | ||
| }; | ||
| declare const getAiAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| customQuery: (body?: CustomQueryBody, otherOptions?: FetcherOptions) => Promise<CustomQueryResult>; | ||
| translateJSON: (body?: TranslateJSONBody, otherOptions?: FetcherOptions) => Promise<TranslateJSONResult>; | ||
| auditContentDeclaration: (body?: AuditContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationResult>; | ||
| auditContentDeclarationField: (body?: AuditContentDeclarationFieldBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationFieldResult>; | ||
| auditContentDeclarationMetadata: (body?: AuditContentDeclarationMetadataBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationMetadataResult>; | ||
| auditTag: (body?: AuditTagBody, otherOptions?: FetcherOptions) => Promise<AuditTagResult>; | ||
| askDocQuestion: (body?: AskDocQuestionBody, otherOptions?: FetcherOptions) => Promise<void>; | ||
| autocomplete: (body?: AutocompleteBody, otherOptions?: FetcherOptions) => Promise<AutocompleteResponse>; | ||
| getDiscussions: (params?: GetDiscussionsParams, otherOptions?: FetcherOptions) => Promise<GetDiscussionsResult>; | ||
| }; | ||
| //#endregion | ||
| export { getAiAPI as i, AskDocQuestionResult as n, AutocompleteBody as r, AskDocQuestionBody as t }; | ||
| //# sourceMappingURL=ai-FbIMwui1.d.ts.map |
| {"version":3,"file":"ai-FbIMwui1.d.ts","names":[],"sources":["../../src/getIntlayerAPI/ai.ts"],"mappings":";;;;;KAuBY,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,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;uBAYP,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"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { AuditEvent, GetRecursiveAuditStatusResult, StartRecursiveAuditResult } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/audit.d.ts | ||
| type ScanUrlBody = { | ||
| url: string; | ||
| onMessage?: (event: AuditEvent) => void; | ||
| onDone?: () => void; | ||
| }; | ||
| type DiscoverUrlsParams = { | ||
| url: string; | ||
| }; | ||
| type DiscoverUrlsResult = { | ||
| urls: string[]; | ||
| }; | ||
| type StartRecursiveAuditBody = { | ||
| url: string; | ||
| urls?: string[]; | ||
| }; | ||
| type GetRecursiveAuditStatusParams = { | ||
| jobId: string; | ||
| }; | ||
| type RecursiveAuditJobParams = { | ||
| jobId: string; | ||
| }; | ||
| declare const getAuditAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| discoverUrls: (params?: DiscoverUrlsParams, otherOptions?: FetcherOptions) => Promise<DiscoverUrlsResult>; | ||
| scanUrl: (body?: ScanUrlBody, otherOptions?: FetcherOptions) => Promise<void>; | ||
| startRecursiveAudit: (body?: StartRecursiveAuditBody, otherOptions?: FetcherOptions) => Promise<StartRecursiveAuditResult>; | ||
| getRecursiveAuditStatus: (params?: GetRecursiveAuditStatusParams, otherOptions?: FetcherOptions) => Promise<GetRecursiveAuditStatusResult>; | ||
| cancelRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{ | ||
| success: boolean; | ||
| }>; | ||
| pauseRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{ | ||
| success: boolean; | ||
| }>; | ||
| resumeRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{ | ||
| success: boolean; | ||
| }>; | ||
| }; | ||
| //#endregion | ||
| export { GetRecursiveAuditStatusResult as a, StartRecursiveAuditBody as c, GetRecursiveAuditStatusParams as i, StartRecursiveAuditResult as l, DiscoverUrlsParams as n, RecursiveAuditJobParams as o, DiscoverUrlsResult as r, ScanUrlBody as s, AuditEvent as t, getAuditAPI as u }; | ||
| //# sourceMappingURL=audit-DzTxbapP.d.ts.map |
| {"version":3,"file":"audit-DzTxbapP.d.ts","names":[],"sources":["../../src/getIntlayerAPI/audit.ts"],"mappings":";;;;;KAcY,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,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;0BAmBL,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"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/bitbucket.d.ts | ||
| type BitbucketRepository = { | ||
| uuid: string; | ||
| name: string; | ||
| full_name: string; | ||
| slug: string; | ||
| mainbranch?: { | ||
| name: string; | ||
| type: string; | ||
| }; | ||
| links: { | ||
| html: { | ||
| href: string; | ||
| }; | ||
| }; | ||
| workspace: { | ||
| slug: string; | ||
| name: string; | ||
| uuid: string; | ||
| }; | ||
| owner: { | ||
| display_name: string; | ||
| username?: string; | ||
| uuid: string; | ||
| }; | ||
| updated_on: string; | ||
| is_private: boolean; | ||
| }; | ||
| type BitbucketAuthCallbackBody = { | ||
| code: string; | ||
| }; | ||
| type BitbucketAuthCallbackResult = { | ||
| data: { | ||
| token: string; | ||
| }; | ||
| }; | ||
| type BitbucketListReposResult = { | ||
| data: BitbucketRepository[]; | ||
| }; | ||
| type BitbucketCheckConfigBody = { | ||
| token?: string; | ||
| workspace: string; | ||
| repoSlug: string; | ||
| branch?: string; | ||
| }; | ||
| type BitbucketCheckConfigResult = { | ||
| data: { | ||
| hasConfig: boolean; | ||
| configPaths: string[]; | ||
| }; | ||
| }; | ||
| type BitbucketGetConfigFileBody = { | ||
| token?: string; | ||
| workspace: string; | ||
| repoSlug: string; | ||
| branch?: string; | ||
| path?: string; | ||
| }; | ||
| type BitbucketGetConfigFileResult = { | ||
| data: { | ||
| content: string; | ||
| }; | ||
| }; | ||
| type BitbucketGetAuthUrlResult = { | ||
| data: { | ||
| authUrl: string; | ||
| }; | ||
| }; | ||
| declare const getBitbucketAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<BitbucketGetAuthUrlResult>; | ||
| authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<BitbucketAuthCallbackResult>; | ||
| getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<BitbucketListReposResult>; | ||
| checkIntlayerConfig: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, otherOptions?: FetcherOptions) => Promise<BitbucketCheckConfigResult>; | ||
| getConfigFile: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<BitbucketGetConfigFileResult>; | ||
| }; | ||
| //#endregion | ||
| export { BitbucketGetAuthUrlResult as a, BitbucketListReposResult as c, BitbucketCheckConfigResult as i, BitbucketRepository as l, BitbucketAuthCallbackResult as n, BitbucketGetConfigFileBody as o, BitbucketCheckConfigBody as r, BitbucketGetConfigFileResult as s, BitbucketAuthCallbackBody as t, getBitbucketAPI as u }; | ||
| //# sourceMappingURL=bitbucket-DeRx5IlR.d.ts.map |
| {"version":3,"file":"bitbucket-DeRx5IlR.d.ts","names":[],"sources":["../../src/getIntlayerAPI/bitbucket.ts"],"mappings":";;;;KAGY,mBAAA;EACV,IAAA;EACA,IAAA;EACA,SAAA;EACA,IAAA;EACA,UAAA;IACE,IAAA;IACA,IAAA;EAAA;EAEF,KAAA;IACE,IAAA;MACE,IAAA;IAAA;EAAA;EAGJ,SAAA;IACE,IAAA;IACA,IAAA;IACA,IAAA;EAAA;EAEF,KAAA;IACE,YAAA;IACA,QAAA;IACA,IAAA;EAAA;EAEF,UAAA;EACA,UAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;AAAA;AAAA,KAGU,2BAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,wBAAA;EACV,IAAA,EAAM,mBAAA;AAAA;AAAA,KAGI,wBAAA;EACV,KAAA;EACA,SAAA;EACA,QAAA;EACA,MAAA;AAAA;AAAA,KAGU,0BAAA;EACV,IAAA;IACE,SAAA;IACA,WAAA;EAAA;AAAA;AAAA,KAIQ,0BAAA;EACV,KAAA;EACA,SAAA;EACA,QAAA;EACA,MAAA;EACA,IAAA;AAAA;AAAA,KAGU,4BAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,eAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;oCAWK,YAAA,GACL,cAAA,KAAc,OAAA,CAAA,yBAAA;+BAgBhB,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,2BAAA;2CAiBP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,wBAAA;0DAmBI,SAAA,UACf,QAAA,UACD,MAAA,WACF,YAAA,GACA,cAAA,KAAc,OAAA,CAAA,0BAAA;oDAqBI,SAAA,UACf,QAAA,UACD,MAAA,WACF,IAAA,WACF,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,4BAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { AddDictionaryBody, DeleteDictionaryParam, GetDictionariesParams, GetDictionaryParams, GetDictionaryQuery, PushDictionariesBody, UpdateDictionaryBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/dictionary.d.ts | ||
| declare const getDictionaryAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getDictionaries: (filters?: GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>; | ||
| getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>; | ||
| getDictionariesUpdateTimestamp: (otherOptions?: FetcherOptions) => Promise<GetDictionariesUpdateTimestampResult>; | ||
| getDictionary: (dictionaryKey: GetDictionaryParams["dictionaryKey"], version?: GetDictionaryQuery["version"], otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>; | ||
| pushDictionaries: (dictionaries: PushDictionariesBody["dictionaries"], otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>; | ||
| addDictionary: (body: AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>; | ||
| updateDictionary: (dictionary: UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>; | ||
| deleteDictionary: (id: DeleteDictionaryParam["dictionaryId"], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>; | ||
| }; | ||
| //#endregion | ||
| export { getDictionaryAPI as t }; | ||
| //# sourceMappingURL=dictionary-W5LSPsxq.d.ts.map |
| {"version":3,"file":"dictionary-W5LSPsxq.d.ts","names":[],"sources":["../../src/getIntlayerAPI/dictionary.ts"],"mappings":";;;;;cAoBa,gBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;8BAWJ,qBAAA,EAAqB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,qBAAA;uCAgBmB,cAAA,KAAc,OAAA,CAAA,yBAAA;kDAc/C,cAAA,KAAc,OAAA,CAAA,oCAAA;iCAiBb,mBAAA,mBAAoC,OAAA,GACzC,kBAAA,aAA6B,YAAA,GACzB,cAAA,KAAc,OAAA,CAAA,mBAAA;mCA8Bd,oBAAA,kBAAoC,YAAA,GACpC,cAAA,KAAc,OAAA,CAAA,sBAAA;wBAftB,iBAAA,EAAiB,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,mBAAA;iCA+BhB,oBAAA,EAAoB,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,sBAAA;yBAiBxB,qBAAA,kBAAqC,YAAA,GAC3B,cAAA,KAAc,OAAA,CAAA,sBAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| import { DictionaryStatus } from "@intlayer/chokidar/build"; | ||
| import { Dictionary } from "@intlayer/types/dictionary"; | ||
| import { DictionaryKeys } from "@intlayer/types/module_augmentation"; | ||
| //#region ../../intlayer-editor/server/dist/httpStatusCodes-Bscj19Pj.d.ts | ||
| //#region src/utils/httpStatusCodes.d.ts | ||
| /** | ||
| * Enum for HTTP response status codes. | ||
| * Contains all the possible HTTP response codes according to the standard. | ||
| * | ||
| * | ||
| * 1xx: Informational responses | ||
| * | ||
| * | ||
| * 100 - CONTINUE - The server has received the request headers and the client should proceed to send the request body. | ||
| * | ||
| * 101 - SWITCHING_PROTOCOLS - The requester has asked the server to switch protocols and the server has agreed to do so. | ||
| * | ||
| * 102 - PROCESSING - Used to return some response headers before final HTTP message. | ||
| * | ||
| * 103 - EARLY_HINTS - Early hints - part of optimization to improve page load time. | ||
| * | ||
| * | ||
| * 2xx: Successful responses | ||
| * | ||
| * | ||
| * 200 - OK - The request has succeeded. | ||
| * | ||
| * 201 - CREATED - The request has been fulfilled and has resulted in one or more new resources being created. | ||
| * | ||
| * 202 - ACCEPTED - The request has been accepted for processing, but the processing has not been completed. | ||
| * | ||
| * 203 - NON_AUTHORITATIVE_INFORMATION - The server successfully processed the request, but is returning information that may be from another source. | ||
| * | ||
| * 204 - NO_CONTENT - The server successfully processed the request and is not returning any content. | ||
| * | ||
| * 205 - RESET_CONTENT - The server successfully processed the request, but is not returning any content and requires that the requester reset the document view. | ||
| * | ||
| * 206 - PARTIAL_CONTENT - The server is delivering only part of the resource due to a range header sent by the client. | ||
| * | ||
| * 207 - MULTI_STATUS - Multi-status response providing status for multiple independent operations. | ||
| * | ||
| * 208 - ALREADY_REPORTED - The members of a DAV binding have already been enumerated in a preceding part of the request. | ||
| * | ||
| * 226 - IM_USED - The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance. | ||
| * | ||
| * | ||
| * 3xx: Redirection messages | ||
| * | ||
| * | ||
| * 300 - MULTIPLE_CHOICES - The request has more than one possible response. The user-agent or user should choose one of them. | ||
| * | ||
| * 301 - MOVED_PERMANENTLY - The URL of the requested resource has been changed permanently. | ||
| * | ||
| * 302 - FOUND - The requested resource is available at a different URI. | ||
| * | ||
| * 303 - SEE_OTHER - The response to the request can be found under another URI using a GET method. | ||
| * | ||
| * 304 - NOT_MODIFIED - Indicates that the resource has not been modified since the version specified by the request headers. | ||
| * | ||
| * 305 - USE_PROXY - The requested resource must be accessed through the proxy given by the Location field. | ||
| * | ||
| * 306 - SWITCH_PROXY - No longer used. Originally meant to direct the client to switch to a different proxy. | ||
| * | ||
| * 307 - TEMPORARY_REDIRECT - The requested resource resides temporarily under a different URI. | ||
| * | ||
| * 308 - PERMANENT_REDIRECT - The request should be repeated with another URI, but future requests should still use the original URI. | ||
| * | ||
| * | ||
| * 4xx: Client error responses | ||
| * | ||
| * | ||
| * 400 - BAD_REQUEST - The server cannot or will not process the request due to something perceived to be a client error. | ||
| * | ||
| * 401 - UNAUTHORIZED - The client must authenticate itself to get the requested response. | ||
| * | ||
| * 403 - FORBIDDEN - The client does not have access rights to the content. | ||
| * | ||
| * 404 - NOT_FOUND - The server can not find the requested resource. | ||
| * | ||
| * 405 - METHOD_NOT_ALLOWED - The request method is known by the server but is not supported by the target resource. | ||
| * | ||
| * 406 - NOT_ACCEPTABLE - This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request. | ||
| * | ||
| * 407 - PROXY_AUTHENTICATION_REQUIRED - This is similar to 401 but authentication is needed to be done by a proxy. | ||
| * | ||
| * 408 - REQUEST_TIMEOUT - This response is sent on an idle connection by some servers, even without any previous request by the client. | ||
| * | ||
| * 409 - CONFLICT - This response is sent when a request conflicts with the current state of the server. | ||
| * | ||
| * 410 - GONE - This response is sent when the requested resource is no longer available and will not be available again. | ||
| * | ||
| * 411 - LENGTH_REQUIRED - The request did not specify the length of its content, which is required by the requested resource. | ||
| * | ||
| * 412 - PRECONDITION_FAILED - The server does not meet one of the preconditions that the requester put on the request. | ||
| * | ||
| * 413 - PAYLOAD_TOO_LARGE - The request is larger than the server is willing or able to process. | ||
| * | ||
| * 414 - URI_TOO_LONG - The URI requested by the client is longer than the server is willing to interpret. | ||
| * | ||
| * 415 - UNSUPPORTED_MEDIA_TYPE - The media format of the requested data is not supported by the server. | ||
| * | ||
| * 416 - RANGE_NOT_SATISFIABLE - The range specified by the Range header field in the request can't be fulfilled. | ||
| * | ||
| * 417 - EXPECTATION_FAILED - The expectation indicated by the Expect request header field can't be met by the server. | ||
| * | ||
| * 418 - IM_A_TEAPOT - The server refuses the attempt to brew coffee with a teapot. | ||
| * | ||
| * 421 - MISDIRECTED_REQUEST - The request was directed at a server that is not able to produce a response. | ||
| * | ||
| * 422 - UNPROCESSABLE_ENTITY - The request was well-formed but was unable to be followed due to semantic errors. | ||
| * | ||
| * 423 - LOCKED - The resource that is being accessed is locked. | ||
| * | ||
| * 424 - FAILED_DEPENDENCY - The request failed due to failure of a previous request. | ||
| * | ||
| * 425 - TOO_EARLY - Indicates that the server is unwilling to risk processing a request that might be replayed. | ||
| * | ||
| * 426 - UPGRADE_REQUIRED - The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol. | ||
| * | ||
| * 428 - PRECONDITION_REQUIRED - The origin server requires the request to be conditional. | ||
| * | ||
| * 429 - TOO_MANY_REQUESTS - The user has sent too many requests in a given amount of time. | ||
| * | ||
| * 431 - REQUEST_HEADER_FIELDS_TOO_LARGE - The server is unwilling to process the request because its header fields are too large. | ||
| * | ||
| * 451 - UNAVAILABLE_FOR_LEGAL_REASONS - The user-agent requested a resource that cannot legally be provided, such as a censored resource. | ||
| * | ||
| * | ||
| * 5xx: Server error responses | ||
| * | ||
| * | ||
| * 500 - INTERNAL_SERVER_ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request. | ||
| * | ||
| * 501 - NOT_IMPLEMENTED - The server does not support the functionality required to fulfill the request. | ||
| * | ||
| * 502 - BAD_GATEWAY - The server, while acting as a gateway or proxy, received an invalid response from the upstream server. | ||
| * | ||
| * 503 - SERVICE_UNAVAILABLE - The server is currently unavailable (because it is overloaded or down for maintenance). | ||
| * | ||
| * 504 - GATEWAY_TIMEOUT - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. | ||
| * | ||
| * 505 - HTTP_VERSION_NOT_SUPPORTED - The server does not support the HTTP protocol version used in the request. | ||
| * | ||
| * 506 - VARIANT_ALSO_NEGOTIATES - The server has an internal configuration error, such as a misconfigured gateway. | ||
| * | ||
| * 507 - INSUFFICIENT_STORAGE - The server is unable to store the representation needed to complete the request. | ||
| * | ||
| * 508 - LOOP_DETECTED - The server detected an infinite loop while processing a request. | ||
| */ | ||
| declare enum HttpStatusCodes { | ||
| /** | ||
| * The server has received the request headers and the client should proceed to send the request body. | ||
| */ | ||
| CONTINUE_100 = 100, | ||
| /** | ||
| * The requester has asked the server to switch protocols and the server has agreed to do so. | ||
| */ | ||
| SWITCHING_PROTOCOLS_101 = 101, | ||
| /** | ||
| * Used to return some response headers before final HTTP message. | ||
| */ | ||
| PROCESSING_102 = 102, | ||
| // WebDAV | ||
| /** | ||
| * Early hints - part of optimization to improve page load time. | ||
| */ | ||
| EARLY_HINTS_103 = 103, | ||
| /** | ||
| * The request has succeeded. | ||
| */ | ||
| OK_200 = 200, | ||
| /** | ||
| * The request has been fulfilled and has resulted in one or more new resources being created. | ||
| */ | ||
| CREATED_201 = 201, | ||
| /** | ||
| * The request has been accepted for processing, but the processing has not been completed. | ||
| */ | ||
| ACCEPTED_202 = 202, | ||
| /** | ||
| * The server successfully processed the request, but is returning information that may be from another source. | ||
| */ | ||
| NON_AUTHORITATIVE_INFORMATION_203 = 203, | ||
| /** | ||
| * The server successfully processed the request and is not returning any content. | ||
| */ | ||
| NO_CONTENT_204 = 204, | ||
| /** | ||
| * The server successfully processed the request, but is not returning any content and requires that the requester reset the document view. | ||
| */ | ||
| RESET_CONTENT_205 = 205, | ||
| /** | ||
| * The server is delivering only part of the resource due to a range header sent by the client. | ||
| */ | ||
| PARTIAL_CONTENT_206 = 206, | ||
| /** | ||
| * Multi-status response providing status for multiple independent operations. | ||
| */ | ||
| MULTI_STATUS_207 = 207, | ||
| // WebDAV | ||
| /** | ||
| * The members of a DAV binding have already been enumerated in a preceding part of the request. | ||
| */ | ||
| ALREADY_REPORTED_208 = 208, | ||
| // WebDAV | ||
| /** | ||
| * The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance. | ||
| */ | ||
| IM_USED_226 = 226, | ||
| /** | ||
| * The request has more than one possible response. The user-agent or user should choose one of them. | ||
| */ | ||
| MULTIPLE_CHOICES_300 = 300, | ||
| /** | ||
| * The URL of the requested resource has been changed permanently. | ||
| */ | ||
| MOVED_PERMANENTLY_301 = 301, | ||
| /** | ||
| * The requested resource is available at a different URI. | ||
| */ | ||
| FOUND_302 = 302, | ||
| /** | ||
| * The response to the request can be found under another URI using a GET method. | ||
| */ | ||
| SEE_OTHER_303 = 303, | ||
| /** | ||
| * Indicates that the resource has not been modified since the version specified by the request headers. | ||
| */ | ||
| NOT_MODIFIED_304 = 304, | ||
| /** | ||
| * The requested resource must be accessed through the proxy given by the Location field. | ||
| */ | ||
| USE_PROXY_305 = 305, | ||
| /** | ||
| * No longer used. Originally meant to direct the client to switch to a different proxy. | ||
| */ | ||
| SWITCH_PROXY_306 = 306, | ||
| /** | ||
| * The requested resource resides temporarily under a different URI. | ||
| */ | ||
| TEMPORARY_REDIRECT_307 = 307, | ||
| /** | ||
| * The request should be repeated with another URI, but future requests should still use the original URI. | ||
| */ | ||
| PERMANENT_REDIRECT_308 = 308, | ||
| /** | ||
| * The server cannot or will not process the request due to something perceived to be a client error. | ||
| */ | ||
| BAD_REQUEST_400 = 400, | ||
| /** | ||
| * The client must authenticate itself to get the requested response. | ||
| */ | ||
| UNAUTHORIZED_401 = 401, | ||
| /** | ||
| * The client does not have access rights to the content. | ||
| */ | ||
| FORBIDDEN_403 = 403, | ||
| /** | ||
| * The server can not find the requested resource. | ||
| */ | ||
| NOT_FOUND_404 = 404, | ||
| /** | ||
| * The request method is known by the server but is not supported by the target resource. | ||
| */ | ||
| METHOD_NOT_ALLOWED_405 = 405, | ||
| /** | ||
| * This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request. | ||
| */ | ||
| NOT_ACCEPTABLE_406 = 406, | ||
| /** | ||
| * This is similar to 401 but authentication is needed to be done by a proxy. | ||
| */ | ||
| PROXY_AUTHENTICATION_REQUIRED_407 = 407, | ||
| /** | ||
| * This response is sent on an idle connection by some servers, even without any previous request by the client. | ||
| */ | ||
| REQUEST_TIMEOUT_408 = 408, | ||
| /** | ||
| * This response is sent when a request conflicts with the current state of the server. | ||
| */ | ||
| CONFLICT_409 = 409, | ||
| /** | ||
| * This response is sent when the requested resource is no longer available and will not be available again. | ||
| */ | ||
| GONE_410 = 410, | ||
| /** | ||
| * The request did not specify the length of its content, which is required by the requested resource. | ||
| */ | ||
| LENGTH_REQUIRED_411 = 411, | ||
| /** | ||
| * The server does not meet one of the preconditions that the requester put on the request. | ||
| */ | ||
| PRECONDITION_FAILED_412 = 412, | ||
| /** | ||
| * The request is larger than the server is willing or able to process. | ||
| */ | ||
| PAYLOAD_TOO_LARGE_413 = 413, | ||
| /** | ||
| * The URI requested by the client is longer than the server is willing to interpret. | ||
| */ | ||
| URI_TOO_LONG_414 = 414, | ||
| /** | ||
| * The media format of the requested data is not supported by the server. | ||
| */ | ||
| UNSUPPORTED_MEDIA_TYPE_415 = 415, | ||
| /** | ||
| * The range specified by the Range header field in the request can't be fulfilled. | ||
| */ | ||
| RANGE_NOT_SATISFIABLE_416 = 416, | ||
| /** | ||
| * The expectation indicated by the Expect request header field can't be met by the server. | ||
| */ | ||
| EXPECTATION_FAILED_417 = 417, | ||
| /** | ||
| * The server refuses the attempt to brew coffee with a teapot. | ||
| */ | ||
| IM_A_TEAPOT_418 = 418, | ||
| // Easter egg from the HTCPCP/1.0 protocol. | ||
| /** | ||
| * The request was directed at a server that is not able to produce a response. | ||
| */ | ||
| MISDIRECTED_REQUEST_421 = 421, | ||
| /** | ||
| * The request was well-formed but was unable to be followed due to semantic errors. | ||
| */ | ||
| UNPROCESSABLE_ENTITY_422 = 422, | ||
| // WebDAV | ||
| /** | ||
| * The resource that is being accessed is locked. | ||
| */ | ||
| LOCKED_423 = 423, | ||
| // WebDAV | ||
| /** | ||
| * The request failed due to failure of a previous request. | ||
| */ | ||
| FAILED_DEPENDENCY_424 = 424, | ||
| // WebDAV | ||
| /** | ||
| * Indicates that the server is unwilling to risk processing a request that might be replayed. | ||
| */ | ||
| TOO_EARLY_425 = 425, | ||
| /** | ||
| * The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol. | ||
| */ | ||
| UPGRADE_REQUIRED_426 = 426, | ||
| /** | ||
| * The origin server requires the request to be conditional. | ||
| */ | ||
| PRECONDITION_REQUIRED_428 = 428, | ||
| /** | ||
| * The user has sent too many requests in a given amount of time. | ||
| */ | ||
| TOO_MANY_REQUESTS_429 = 429, | ||
| /** | ||
| * The server is unwilling to process the request because its header fields are too large. | ||
| */ | ||
| REQUEST_HEADER_FIELDS_TOO_LARGE_431 = 431, | ||
| /** | ||
| * The user-agent requested a resource that cannot legally be provided, such as a censored resource. | ||
| */ | ||
| UNAVAILABLE_FOR_LEGAL_REASONS_451 = 451, | ||
| /** | ||
| * The server encountered an unexpected condition that prevented it from fulfilling the request. | ||
| */ | ||
| INTERNAL_SERVER_ERROR_500 = 500, | ||
| /** | ||
| * The server does not support the functionality required to fulfill the request. | ||
| */ | ||
| NOT_IMPLEMENTED_501 = 501, | ||
| /** | ||
| * The server, while acting as a gateway or proxy, received an invalid response from the upstream server. | ||
| */ | ||
| BAD_GATEWAY_502 = 502, | ||
| /** | ||
| * The server is currently unavailable (because it is overloaded or down for maintenance). | ||
| */ | ||
| SERVICE_UNAVAILABLE_503 = 503, | ||
| /** | ||
| * The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. | ||
| */ | ||
| GATEWAY_TIMEOUT_504 = 504, | ||
| /** | ||
| * The server does not support the HTTP protocol version used in the request. | ||
| */ | ||
| HTTP_VERSION_NOT_SUPPORTED_505 = 505, | ||
| /** | ||
| * The server has an internal configuration error, such as a misconfigured gateway. | ||
| */ | ||
| VARIANT_ALSO_NEGOTIATES_506 = 506, | ||
| /** | ||
| * The server is unable to store the representation needed to complete the request. | ||
| */ | ||
| INSUFFICIENT_STORAGE_507 = 507, | ||
| // WebDAV | ||
| /** | ||
| * The server detected an infinite loop while processing a request. | ||
| */ | ||
| LOOP_DETECTED_508 = 508, | ||
| // WebDAV | ||
| /** | ||
| * Further extensions to the request are required for the server to fulfill it. | ||
| */ | ||
| NOT_EXTENDED_510 = 510, | ||
| /** | ||
| * The client needs to authenticate to gain network access. | ||
| */ | ||
| NETWORK_AUTHENTICATION_REQUIRED_511 = 511 | ||
| } //#endregion | ||
| //#endregion | ||
| //#region ../../intlayer-editor/server/dist/responseData-DcKPpb9v.d.ts | ||
| //#region src/utils/responseData.d.ts | ||
| type ErrorData = { | ||
| code: string; | ||
| title: string; | ||
| message: string; | ||
| } & object; | ||
| type ResponseData<T = null> = { | ||
| message?: string; | ||
| description?: string; | ||
| success: boolean; | ||
| status: HttpStatusCodes; | ||
| data: T | null; | ||
| error?: ErrorData | ErrorData[]; | ||
| }; | ||
| //#endregion | ||
| //#region ../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts | ||
| //#region src/controllers/configuration.controller.d.ts | ||
| type GetConfigurationResult = ResponseData<IntlayerConfig>; | ||
| /** | ||
| * Get the Intlayer configuration | ||
| */ | ||
| //#endregion | ||
| //#region ../unmerged-dictionaries-entry/dist/types/index.d.ts | ||
| //#region src/index.d.ts | ||
| type UnmergedDictionaries = Record<DictionaryKeys, Dictionary[]>; | ||
| //#endregion | ||
| //#region ../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts | ||
| //#region src/controllers/dictionary.controller.d.ts | ||
| type GetEditorDictionariesResult = ResponseData<UnmergedDictionaries>; | ||
| /** | ||
| * Get the Intlayer configuration | ||
| */ | ||
| type WriteContentDeclarationBody = { | ||
| dictionary: Dictionary; | ||
| }; | ||
| type WriteContentDeclarationResultData = { | ||
| status: DictionaryStatus; | ||
| path: string; | ||
| }; | ||
| type WriteContentDeclarationResult = ResponseData<WriteContentDeclarationResultData>; | ||
| /** | ||
| * Adds a new dictionary to the database. | ||
| */ | ||
| //#endregion | ||
| //#region src/getIntlayerAPI/editor.d.ts | ||
| declare const getEditorAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>; | ||
| getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>; | ||
| writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>; | ||
| }; | ||
| //#endregion | ||
| export { getEditorAPI as t }; | ||
| //# sourceMappingURL=editor-DTBh5ovU.d.ts.map |
| {"version":3,"file":"editor-DTBh5ovU.d.ts","names":["HttpStatusCodes","CONTINUE_100","SWITCHING_PROTOCOLS_101","PROCESSING_102","EARLY_HINTS_103","OK_200","CREATED_201","ACCEPTED_202","NON_AUTHORITATIVE_INFORMATION_203","NO_CONTENT_204","RESET_CONTENT_205","PARTIAL_CONTENT_206","MULTI_STATUS_207","ALREADY_REPORTED_208","IM_USED_226","MULTIPLE_CHOICES_300","MOVED_PERMANENTLY_301","FOUND_302","SEE_OTHER_303","NOT_MODIFIED_304","USE_PROXY_305","SWITCH_PROXY_306","TEMPORARY_REDIRECT_307","PERMANENT_REDIRECT_308","BAD_REQUEST_400","UNAUTHORIZED_401","FORBIDDEN_403","NOT_FOUND_404","METHOD_NOT_ALLOWED_405","NOT_ACCEPTABLE_406","PROXY_AUTHENTICATION_REQUIRED_407","REQUEST_TIMEOUT_408","CONFLICT_409","GONE_410","LENGTH_REQUIRED_411","PRECONDITION_FAILED_412","PAYLOAD_TOO_LARGE_413","URI_TOO_LONG_414","UNSUPPORTED_MEDIA_TYPE_415","RANGE_NOT_SATISFIABLE_416","EXPECTATION_FAILED_417","IM_A_TEAPOT_418","MISDIRECTED_REQUEST_421","UNPROCESSABLE_ENTITY_422","LOCKED_423","FAILED_DEPENDENCY_424","TOO_EARLY_425","UPGRADE_REQUIRED_426","PRECONDITION_REQUIRED_428","TOO_MANY_REQUESTS_429","REQUEST_HEADER_FIELDS_TOO_LARGE_431","UNAVAILABLE_FOR_LEGAL_REASONS_451","INTERNAL_SERVER_ERROR_500","NOT_IMPLEMENTED_501","BAD_GATEWAY_502","SERVICE_UNAVAILABLE_503","GATEWAY_TIMEOUT_504","HTTP_VERSION_NOT_SUPPORTED_505","VARIANT_ALSO_NEGOTIATES_506","INSUFFICIENT_STORAGE_507","LOOP_DETECTED_508","NOT_EXTENDED_510","NETWORK_AUTHENTICATION_REQUIRED_511","t","t","HttpStatusCodes","ErrorData","code","title","message","ResponseData","T","description","success","status","data","error","ValidResponseStatus","OK_200","CREATED_201","ACCEPTED_202","NON_AUTHORITATIVE_INFORMATION_203","NO_CONTENT_204","RESET_CONTENT_205","PARTIAL_CONTENT_206","MULTI_STATUS_207","ALREADY_REPORTED_208","IM_USED_226","SuccessResponseArgs","ErrorResponseArgs","formatResponse","PaginatedResponse","Omit","page","page_size","total_pages","total_items","SuccessPaginatedResponseArgs","pageSize","totalPages","totalItems","ErrorPaginatedResponseArgs","formatPaginatedResponse","i","n","r","n","ResponseData","IntlayerConfig","FastifyReply","FastifyRequest","GetConfigurationResult","getConfiguration","Promise","_req","res","IntlayerConfig","Dictionary","DictionaryKeys","UnmergedDictionaries","Record","GetUnmergedDictionaries","configuration","getUnmergedDictionaries","n","ResponseData","FastifyReply","FastifyRequest","DictionaryStatus","Dictionary","UnmergedDictionaries","GetEditorDictionariesResult","getDictionaries","Promise","_req","res","WriteContentDeclarationBody","dictionary","WriteContentDeclarationResultData","status","path","WriteContentDeclarationResult","writeContentDeclaration","Body","req"],"sources":["../../../../intlayer-editor/server/dist/httpStatusCodes-Bscj19Pj.d.ts","../../../../intlayer-editor/server/dist/responseData-DcKPpb9v.d.ts","../../../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts","../../../unmerged-dictionaries-entry/dist/types/index.d.ts","../../../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts","../../src/getIntlayerAPI/editor.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAqE;;;;;;;;;AAM5D;;;;;;;;;;;;;;;;;;;;;;;;;ACJ8C;;;;;;;;ACAc;;;;;;;;;;;;;;;;ACEQ;;;;;AAOM;;;;aJsItEA,eAAAA;EIpIW;;;EJwItBC,YAAAA;EIrIA0I;;;EJyIAzI,uBAAAA;EIxII;AAAA;;EJ4IJC,cAAAA;EAAAA;EI1IiF;;;EJ+IjFC,eAAAA;EKzJF;;;EL6JEC,MAAAA;EK3JgB;;;EL+JhBC,WAAAA;EKjJgB;;;ELqJhBC,YAAAA;EKrHgB;;;ELyHhBC,iCAAAA;EKzH8B;;;EL6H9BC,cAAAA;EK3KA;;;EL+KAC,iBAAAA;EKjJG;;;ELqJHC,mBAAAA;;;;EAIAC,gBAAAA;EAAAA;;;;EAKAC,oBAAAA;EAAAA;EK9I8B;;;ELmJ9BC,WAAAA;;;;EAIAC,oBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,SAAAA;;;;EAIAC,aAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,aAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,eAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,aAAAA;;;;EAIAC,aAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,kBAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,YAAAA;;;;EAIAC,QAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,0BAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,eAAAA;EAAAA;;;;EAKAC,uBAAAA;;;;EAIAC,wBAAAA;EAAAA;;;;EAKAC,UAAAA;EAAAA;;;;EAKAC,qBAAAA;EAAAA;;;;EAKAC,aAAAA;;;;EAIAC,oBAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,mCAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,eAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,8BAAAA;;;;EAIAC,2BAAAA;;;;EAIAC,wBAAAA;EAAAA;;;;EAKAC,iBAAAA;EAAAA;;;;EAKAC,gBAAAA;;;;EAIAC,mCAAAA;AAAAA;;;;KC/YGI,SAAAA;EACHC,IAAAA;EACAC,KAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,YAAAA;EACHD,OAAAA;EACAG,WAAAA;EACAC,OAAAA;EACAC,MAAAA,EAAQT,eAAAA;EACRU,IAAAA,EAAMJ,CAAAA;EACNK,KAAAA,GAAQV,SAAAA,GAAYA,SAAAA;AAAAA;;;;KCTjB6C,sBAAAA,GAAyBJ,YAAAA,CAAaC,cAAAA;;;;;;;KCAtCW,oBAAAA,GAAuBC,MAAAA,CAAOF,cAAAA,EAAgBD,UAAAA;;;;KCE9Cc,2BAAAA,GAA8BN,YAAAA,CAAaK,oBAAAA;;;;KAK3CM,2BAAAA;EACHC,UAAAA,EAAYR,UAAAA;AAAAA;AAAAA,KAETS,iCAAAA;EACHC,MAAAA,EAAQX,gBAAAA;EACRY,IAAAA;AAAAA;AAAAA,KAEGC,6BAAAA,GAAgChB,YAAAA,CAAaa,iCAAAA;;;;;;cCVrC,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;mCA6BA,cAAA,KACb,OAAA,CAAQ,2BAAA;oCAhBK,cAAA,KACb,OAAA,CAAQ,sBAAA;0BA8BH,2BAAA,EAA2B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,6BAAA;AAAA"} |
| import { DictionaryAPI } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/distantDictionary/fetchDistantDictionaries.d.ts | ||
| /** | ||
| * Fetch distant dictionary | ||
| */ | ||
| declare const fetchDistantDictionaries: (intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI[] | null | undefined>; | ||
| //#endregion | ||
| export { fetchDistantDictionaries as t }; | ||
| //# sourceMappingURL=fetchDistantDictionaries-CLQEr6NS.d.ts.map |
| {"version":3,"file":"fetchDistantDictionaries-CLQEr6NS.d.ts","names":[],"sources":["../../src/distantDictionary/fetchDistantDictionaries.ts"],"mappings":";;;;;;AAOA;cAAa,wBAAA,GACX,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"} |
| import { DictionaryAPI } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/distantDictionary/fetchDistantDictionary.d.ts | ||
| /** | ||
| * Fetch distant dictionary | ||
| */ | ||
| declare const fetchDistantDictionary: (dictionaryKey: string, intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI | undefined>; | ||
| //#endregion | ||
| export { fetchDistantDictionary as t }; | ||
| //# sourceMappingURL=fetchDistantDictionary-C7esreMl.d.ts.map |
| {"version":3,"file":"fetchDistantDictionary-C7esreMl.d.ts","names":[],"sources":["../../src/distantDictionary/fetchDistantDictionary.ts"],"mappings":";;;;;;AAOA;cAAa,sBAAA,GACX,aAAA,UACA,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/github.d.ts | ||
| type GitHubRepository = { | ||
| id: number; | ||
| name: string; | ||
| full_name: string; | ||
| owner: { | ||
| login: string; | ||
| id: number; | ||
| }; | ||
| html_url: string; | ||
| default_branch: string; | ||
| private: boolean; | ||
| }; | ||
| type GitHubAuthCallbackBody = { | ||
| code: string; | ||
| }; | ||
| type GitHubAuthCallbackResult = { | ||
| data: { | ||
| token: string; | ||
| }; | ||
| }; | ||
| type GitHubListReposResult = { | ||
| data: GitHubRepository[]; | ||
| }; | ||
| type GitHubCheckConfigBody = { | ||
| token?: string; | ||
| owner: string; | ||
| repository: string; | ||
| branch?: string; | ||
| }; | ||
| type GitHubCheckConfigResult = { | ||
| data: { | ||
| hasConfig: boolean; | ||
| }; | ||
| }; | ||
| type GitHubGetConfigFileBody = { | ||
| token?: string; | ||
| owner: string; | ||
| repository: string; | ||
| branch?: string; | ||
| path?: string; | ||
| }; | ||
| type GitHubGetConfigFileResult = { | ||
| data: { | ||
| content: string; | ||
| }; | ||
| }; | ||
| type GitHubGetAuthUrlResult = { | ||
| data: { | ||
| authUrl: string; | ||
| }; | ||
| }; | ||
| declare const getGithubAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<GitHubGetAuthUrlResult>; | ||
| authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<GitHubAuthCallbackResult>; | ||
| getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<GitHubListReposResult>; | ||
| checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<GitHubCheckConfigResult>; | ||
| getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<GitHubGetConfigFileResult>; | ||
| }; | ||
| //#endregion | ||
| export { GitHubGetAuthUrlResult as a, GitHubListReposResult as c, GitHubCheckConfigResult as i, GitHubRepository as l, GitHubAuthCallbackResult as n, GitHubGetConfigFileBody as o, GitHubCheckConfigBody as r, GitHubGetConfigFileResult as s, GitHubAuthCallbackBody as t, getGithubAPI as u }; | ||
| //# sourceMappingURL=github-D077Il7G.d.ts.map |
| {"version":3,"file":"github-D077Il7G.d.ts","names":[],"sources":["../../src/getIntlayerAPI/github.ts"],"mappings":";;;;KAGY,gBAAA;EACV,EAAA;EACA,IAAA;EACA,SAAA;EACA,KAAA;IACE,KAAA;IACA,EAAA;EAAA;EAEF,QAAA;EACA,cAAA;EACA,OAAA;AAAA;AAAA,KAGU,sBAAA;EACV,IAAA;AAAA;AAAA,KAGU,wBAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,qBAAA;EACV,IAAA,EAAM,gBAAA;AAAA;AAAA,KAGI,qBAAA;EACV,KAAA;EACA,KAAA;EACA,UAAA;EACA,MAAA;AAAA;AAAA,KAGU,uBAAA;EACV,IAAA;IACE,SAAA;EAAA;AAAA;AAAA,KAIQ,uBAAA;EACV,KAAA;EACA,KAAA;EACA,UAAA;EACA,MAAA;EACA,IAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;oCAWK,YAAA,GACL,cAAA,KAAc,OAAA,CAAA,sBAAA;+BAgBhB,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,wBAAA;2CAiBP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,qBAAA;0DAmBI,KAAA,UACnB,UAAA,UACK,MAAA,WACJ,YAAA,GACA,cAAA,KAAc,OAAA,CAAA,uBAAA;oDAqBI,KAAA,UACnB,UAAA,UACK,MAAA,WACJ,IAAA,WACF,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,yBAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/gitlab.d.ts | ||
| type GitLabProject = { | ||
| id: number; | ||
| name: string; | ||
| path_with_namespace: string; | ||
| web_url: string; | ||
| default_branch: string; | ||
| visibility: string; | ||
| last_activity_at: string; | ||
| namespace: { | ||
| id: number; | ||
| name: string; | ||
| path: string; | ||
| }; | ||
| }; | ||
| type GitLabAuthCallbackBody = { | ||
| code: string; | ||
| redirectUri: string; | ||
| instanceUrl?: string; | ||
| }; | ||
| type GitLabAuthCallbackResult = { | ||
| data: { | ||
| token: string; | ||
| }; | ||
| }; | ||
| type GitLabListProjectsResult = { | ||
| data: GitLabProject[]; | ||
| }; | ||
| type GitLabCheckConfigBody = { | ||
| token?: string; | ||
| projectId: number; | ||
| branch?: string; | ||
| instanceUrl?: string; | ||
| }; | ||
| type GitLabCheckConfigResult = { | ||
| data: { | ||
| hasConfig: boolean; | ||
| configPaths: string[]; | ||
| }; | ||
| }; | ||
| type GitLabGetConfigFileBody = { | ||
| token?: string; | ||
| projectId: number; | ||
| branch?: string; | ||
| path?: string; | ||
| instanceUrl?: string; | ||
| }; | ||
| type GitLabGetConfigFileResult = { | ||
| data: { | ||
| content: string; | ||
| }; | ||
| }; | ||
| type GitLabGetAuthUrlResult = { | ||
| data: { | ||
| authUrl: string; | ||
| }; | ||
| }; | ||
| declare const getGitlabAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getAuthUrl: (redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetAuthUrlResult>; | ||
| authenticate: (code: string, redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabAuthCallbackResult>; | ||
| getProjects: (token?: string | null, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabListProjectsResult>; | ||
| checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabCheckConfigResult>; | ||
| getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetConfigFileResult>; | ||
| }; | ||
| //#endregion | ||
| export { GitLabGetAuthUrlResult as a, GitLabListProjectsResult as c, GitLabCheckConfigResult as i, GitLabProject as l, GitLabAuthCallbackResult as n, GitLabGetConfigFileBody as o, GitLabCheckConfigBody as r, GitLabGetConfigFileResult as s, GitLabAuthCallbackBody as t, getGitlabAPI as u }; | ||
| //# sourceMappingURL=gitlab-BrWydMCh.d.ts.map |
| {"version":3,"file":"gitlab-BrWydMCh.d.ts","names":[],"sources":["../../src/getIntlayerAPI/gitlab.ts"],"mappings":";;;;KAGY,aAAA;EACV,EAAA;EACA,IAAA;EACA,mBAAA;EACA,OAAA;EACA,cAAA;EACA,UAAA;EACA,gBAAA;EACA,SAAA;IACE,EAAA;IACA,IAAA;IACA,IAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;EACA,WAAA;EACA,WAAA;AAAA;AAAA,KAGU,wBAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,wBAAA;EACV,IAAA,EAAM,aAAA;AAAA;AAAA,KAGI,qBAAA;EACV,KAAA;EACA,SAAA;EACA,MAAA;EACA,WAAA;AAAA;AAAA,KAGU,uBAAA;EACV,IAAA;IACE,SAAA;IACA,WAAA;EAAA;AAAA;AAAA,KAIQ,uBAAA;EACV,KAAA;EACA,SAAA;EACA,MAAA;EACA,IAAA;EACA,WAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;oCAYK,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,sBAAA;+BAkBhB,WAAA,UACO,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,wBAAA;uCAkBP,WAAA,WACD,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,wBAAA;0DAsBI,SAAA,UACf,MAAA,WACH,WAAA,WACM,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,uBAAA;oDA0BI,SAAA,UACf,MAAA,WACH,IAAA,WACF,WAAA,WACQ,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,yBAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/newsletter.d.ts | ||
| declare const getNewsletterAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>; | ||
| unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>; | ||
| getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>; | ||
| }; | ||
| //#endregion | ||
| export { getNewsletterAPI as t }; | ||
| //# sourceMappingURL=newsletter-Dg_6QDY_.d.ts.map |
| {"version":3,"file":"newsletter-Dg_6QDY_.d.ts","names":[],"sources":["../../src/getIntlayerAPI/newsletter.ts"],"mappings":";;;;;cAQa,gBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;gCAYR,0BAAA,EAA0B,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,4BAAA;oCAkBtB,4BAAA,EAA4B,YAAA,GACpB,cAAA,KAAc,OAAA,CAAA,4BAAA;uCAgBmB,cAAA,KAAc,OAAA,CAAA,4BAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/oAuth.d.ts | ||
| declare const getOAuthAPI: (intlayerConfig: IntlayerConfig) => { | ||
| getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>; | ||
| }; | ||
| //#endregion | ||
| export { getOAuthAPI as t }; | ||
| //# sourceMappingURL=oAuth-DfQmGzLO.d.ts.map |
| {"version":3,"file":"oAuth-DfQmGzLO.d.ts","names":[],"sources":["../../src/getIntlayerAPI/oAuth.ts"],"mappings":";;;;cAOa,WAAA,GAAe,cAAA,EAAgB,cAAA;wCAQQ,cAAA,KAAc,OAAA,CAAA,oBAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMembersBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/organization.d.ts | ||
| declare const getOrganizationAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>; | ||
| getOrganization: (organizationId: GetOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>; | ||
| addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>; | ||
| addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>; | ||
| updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>; | ||
| updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>; | ||
| updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>; | ||
| deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>; | ||
| selectOrganization: (organizationId: SelectOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>; | ||
| unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>; | ||
| }; | ||
| //#endregion | ||
| export { getOrganizationAPI as t }; | ||
| //# sourceMappingURL=organization-CNkB8dnj.d.ts.map |
| {"version":3,"file":"organization-CNkB8dnj.d.ts","names":[],"sources":["../../src/getIntlayerAPI/organization.ts"],"mappings":";;;;;cAqBa,kBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;+BAWJ,sBAAA,EAAsB,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,sBAAA;oCAkBZ,oBAAA,oBAAsC,YAAA,GACxC,cAAA,KAAc,OAAA,CAAA,qBAAA;kCAad,mBAAA,EAAmB,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,qBAAA;gCAyEtB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;qCAzDd,sBAAA,EAAsB,YAAA,GACtB,cAAA,KAAc,OAAA,CAAA,wBAAA;oCAiBtB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;0DAkBN,IAAA,EAChB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;sCAkCkB,cAAA,KAAc,OAAA,CAAA,wBAAA;uCAe5C,uBAAA,oBAAyC,YAAA,GAC3C,cAAA,KAAc,OAAA,CAAA,wBAAA;wCAeoB,cAAA,KAAc,OAAA,CAAA,0BAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, TriggerWebhookBody, UpdateProjectBody, UpdateProjectMembersBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/project.d.ts | ||
| declare const getProjectAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>; | ||
| addProject: (project: AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>; | ||
| updateProject: (project: UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>; | ||
| updateProjectMembers: (body: UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>; | ||
| pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>; | ||
| deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>; | ||
| selectProject: (projectId: SelectProjectParam["projectId"], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>; | ||
| unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>; | ||
| addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>; | ||
| deleteAccessKey: (clientId: DeleteAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>; | ||
| refreshAccessKey: (clientId: RefreshAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>; | ||
| triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>; | ||
| triggerWebhook: (webhookIndex: TriggerWebhookBody["webhookIndex"], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>; | ||
| getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>; | ||
| pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>; | ||
| }; | ||
| //#endregion | ||
| export { getProjectAPI as t }; | ||
| //# sourceMappingURL=project-DKLgh9Mz.d.ts.map |
| {"version":3,"file":"project-DKLgh9Mz.d.ts","names":[],"sources":["../../src/getIntlayerAPI/project.ts"],"mappings":";;;;;cA6Ba,aAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;0BAWJ,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"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { SearchDocUtilParams } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/search.d.ts | ||
| declare const getSearchAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>; | ||
| }; | ||
| //#endregion | ||
| export { getSearchAPI as t }; | ||
| //# sourceMappingURL=search-CVbo1OMK.d.ts.map |
| {"version":3,"file":"search-CVbo1OMK.d.ts","names":[],"sources":["../../src/getIntlayerAPI/search.ts"],"mappings":";;;;;cAOa,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;uBAYL,mBAAA,EAAmB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,mBAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { GetShowcaseProjectByIdParams, SubmitShowcaseProjectBody, ToggleShowcaseDownvoteBody, ToggleShowcaseUpvoteBody, UpdateShowcaseProjectBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/showcaseProject.d.ts | ||
| type ShowcaseProjectsQuery = { | ||
| page?: number; | ||
| pageSize?: number; | ||
| search?: string; | ||
| selectedUseCases?: string[]; | ||
| isOpenSource?: boolean; | ||
| }; | ||
| type OtherShowcaseProjectsQuery = { | ||
| excludeId: string; | ||
| limit?: number; | ||
| }; | ||
| declare const getShowcaseProjectAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getShowcaseProjects: (query?: ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectsResult>; | ||
| getShowcaseProjectById: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectByIdResult>; | ||
| getOtherShowcaseProjects: (query: OtherShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetOtherShowcaseProjectsResult>; | ||
| submitShowcaseProject: (body: SubmitShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<SubmitShowcaseProjectResult>; | ||
| toggleShowcaseUpvote: (body: ToggleShowcaseUpvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseUpvoteResult>; | ||
| toggleShowcaseDownvote: (body: ToggleShowcaseDownvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseDownvoteResult>; | ||
| deleteShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<{ | ||
| data: { | ||
| success: boolean; | ||
| }; | ||
| }>; | ||
| updateShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], body: UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>; | ||
| }; | ||
| //#endregion | ||
| export { ShowcaseProjectsQuery as n, getShowcaseProjectAPI as r, OtherShowcaseProjectsQuery as t }; | ||
| //# sourceMappingURL=showcaseProject-1zcpB4aW.d.ts.map |
| {"version":3,"file":"showcaseProject-1zcpB4aW.d.ts","names":[],"sources":["../../src/getIntlayerAPI/showcaseProject.ts"],"mappings":";;;;;KAmBY,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,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;gCAON,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"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { GetCheckoutSessionBody, GetPricingBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/stripe.d.ts | ||
| declare const getStripeAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getPricing: (body?: GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>; | ||
| getSubscription: (body?: GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>; | ||
| cancelSubscription: (otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>; | ||
| }; | ||
| //#endregion | ||
| export { getStripeAPI as t }; | ||
| //# sourceMappingURL=stripe-vRfMjdAc.d.ts.map |
| {"version":3,"file":"stripe-vRfMjdAc.d.ts","names":[],"sources":["../../src/getIntlayerAPI/stripe.ts"],"mappings":";;;;;cASa,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;sBAWP,cAAA,EAAc,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,gBAAA;2BAiBrB,sBAAA,EAAsB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,wBAAA;sCAgBkB,cAAA,KAAc,OAAA,CAAA,wBAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { AddTagBody, DeleteTagParams, GetTagsParams, UpdateTagBody, UpdateTagParams } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/tag.d.ts | ||
| declare const getTagAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getTags: (filters?: GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>; | ||
| addTag: (tag: AddTagBody, otherOptions?: FetcherOptions) => Promise<AddTagResult>; | ||
| updateTag: (tagId: UpdateTagParams["tagId"], tag: UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>; | ||
| deleteTag: (tagId: DeleteTagParams["tagId"], otherOptions?: FetcherOptions) => Promise<DeleteTagResult>; | ||
| }; | ||
| //#endregion | ||
| export { getTagAPI as t }; | ||
| //# sourceMappingURL=tag-0oc2-9J5.d.ts.map |
| {"version":3,"file":"tag-0oc2-9J5.d.ts","names":[],"sources":["../../src/getIntlayerAPI/tag.ts"],"mappings":";;;;;cAca,SAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;sBAWJ,aAAA,EAAa,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,aAAA;gBAiBH,UAAA,EAAU,YAAA,GAAgB,cAAA,KAAc,OAAA,CAAA,YAAA;qBAgB1D,eAAA,WAAwB,GAAA,EAC1B,aAAA,EAAa,YAAA,GACJ,cAAA,KAAc,OAAA,CAAA,eAAA;qBAiBrB,eAAA,WAAwB,YAAA,GAEjB,cAAA,KAAc,OAAA,CAAA,eAAA;AAAA"} |
| import { FetcherOptions } from "./fetcher.js"; | ||
| import { CreateUserBody, GetUserByEmailParams, GetUserByIdParams, GetUsersParams, UpdateUserBody, UserAPI } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/user.d.ts | ||
| type GetUserByAccountParams = { | ||
| providerAccountId: string; | ||
| provider: string; | ||
| }; | ||
| declare const getUserAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| createUser: (user: CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>; | ||
| getUsers: (filters?: GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>; | ||
| getUserById: (userId: GetUserByIdParams["userId"], otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>; | ||
| getUserByAccount: (providerAccountId: GetUserByAccountParams["providerAccountId"], provider: GetUserByAccountParams["provider"], otherOptions?: FetcherOptions) => Promise<any>; | ||
| getUserByEmail: (email: GetUserByEmailParams["email"], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>; | ||
| updateUser: (user: UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>; | ||
| deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>; | ||
| getVerifyEmailStatusURL: (userId: string | UserAPI["id"]) => string; | ||
| }; | ||
| //#endregion | ||
| export { getUserAPI as t }; | ||
| //# sourceMappingURL=user-BVi1Ho0Q.d.ts.map |
| {"version":3,"file":"user-BVi1Ho0Q.d.ts","names":[],"sources":["../../src/getIntlayerAPI/user.ts"],"mappings":";;;;;KAgBK,sBAAA;EAA2B,iBAAA;EAA2B,QAAA;AAAA;AAAA,cAG9C,UAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;qBAuFR,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;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"} |
@@ -1,2 +0,1 @@ | ||
| Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`./ai.cjs`),n=require(`./audit.cjs`),r=require(`./bitbucket.cjs`),i=require(`./dictionary.cjs`),a=require(`./editor.cjs`),o=require(`./github.cjs`),s=require(`./gitlab.cjs`),c=require(`./newsletter.cjs`),l=require(`./oAuth.cjs`),u=require(`./organization.cjs`),d=require(`./project.cjs`),f=require(`./search.cjs`),p=require(`./showcaseProject.cjs`),m=require(`./stripe.cjs`),h=require(`./tag.cjs`),g=require(`./user.cjs`);let _=require(`@intlayer/config/built`);_=e.__toESM(_);let v=require(`defu`);const y=(e={},y)=>{let b=(0,v.defu)(y??{},_.default);return{organization:u.getOrganizationAPI(e,b),project:d.getProjectAPI(e,b),user:g.getUserAPI(e,b),oAuth:l.getOAuthAPI(b),dictionary:i.getDictionaryAPI(e,b),stripe:m.getStripeAPI(e,b),ai:t.getAiAPI(e,b),audit:n.getAuditAPI(e,b),tag:h.getTagAPI(e,b),search:f.getSearchAPI(e,b),editor:a.getEditorAPI(e,b),newsletter:c.getNewsletterAPI(e,b),github:o.getGithubAPI(e,b),gitlab:s.getGitlabAPI(e,b),bitbucket:r.getBitbucketAPI(e,b),showcaseProject:p.getShowcaseProjectAPI(e,b)}};exports.getIntlayerAPI=y; | ||
| //# sourceMappingURL=index.cjs.map | ||
| Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../getIntlayerAPI-CUu2tiLP.cjs`);exports.getIntlayerAPI=e.t; |
@@ -1,1 +0,1 @@ | ||
| Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./fetcher.cjs`),t=require(`./getIntlayerAPI/ai.cjs`),n=require(`./getIntlayerAPI/audit.cjs`),r=require(`./getIntlayerAPI/bitbucket.cjs`),i=require(`./getIntlayerAPI/dictionary.cjs`),a=require(`./getIntlayerAPI/editor.cjs`),o=require(`./getIntlayerAPI/github.cjs`),s=require(`./getIntlayerAPI/gitlab.cjs`),c=require(`./getIntlayerAPI/newsletter.cjs`),l=require(`./getIntlayerAPI/oAuth.cjs`),u=require(`./getIntlayerAPI/organization.cjs`),d=require(`./getIntlayerAPI/project.cjs`),f=require(`./getIntlayerAPI/search.cjs`),p=require(`./getIntlayerAPI/stripe.cjs`),m=require(`./getIntlayerAPI/tag.cjs`),h=require(`./getIntlayerAPI/user.cjs`),g=require(`./getIntlayerAPI/index.cjs`),_=require(`./proxy.cjs`),v=require(`./distantDictionary/fetchDistantDictionaries.cjs`),y=require(`./distantDictionary/fetchDistantDictionary.cjs`);exports.fetchDistantDictionaries=v.fetchDistantDictionaries,exports.fetchDistantDictionary=y.fetchDistantDictionary,exports.fetcher=e.fetcher,exports.fetcherOptions=e.fetcherOptions,exports.getAiAPI=t.getAiAPI,exports.getAuditAPI=n.getAuditAPI,exports.getBitbucketAPI=r.getBitbucketAPI,exports.getDictionaryAPI=i.getDictionaryAPI,exports.getEditorAPI=a.getEditorAPI,exports.getGithubAPI=o.getGithubAPI,exports.getGitlabAPI=s.getGitlabAPI,exports.getIntlayerAPI=g.getIntlayerAPI,exports.getIntlayerAPIProxy=_.getIntlayerAPIProxy,exports.getNewsletterAPI=c.getNewsletterAPI,exports.getOAuthAPI=l.getOAuthAPI,exports.getOrganizationAPI=u.getOrganizationAPI,exports.getProjectAPI=d.getProjectAPI,exports.getSearchAPI=f.getSearchAPI,exports.getStripeAPI=p.getStripeAPI,exports.getTagAPI=m.getTagAPI,exports.getUserAPI=h.getUserAPI; | ||
| Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getIntlayerAPI-CUu2tiLP.cjs`),t=require(`./fetcher.cjs`);require(`./types.cjs`);const n=require(`./getIntlayerAPI/ai.cjs`),r=require(`./getIntlayerAPI/audit.cjs`),i=require(`./getIntlayerAPI/bitbucket.cjs`),a=require(`./getIntlayerAPI/dictionary.cjs`),o=require(`./getIntlayerAPI/editor.cjs`),s=require(`./getIntlayerAPI/github.cjs`),c=require(`./getIntlayerAPI/gitlab.cjs`),l=require(`./getIntlayerAPI/newsletter.cjs`),u=require(`./getIntlayerAPI/oAuth.cjs`),d=require(`./getIntlayerAPI/organization.cjs`),f=require(`./getIntlayerAPI/project.cjs`),p=require(`./getIntlayerAPI/search.cjs`),m=require(`./getIntlayerAPI/stripe.cjs`),h=require(`./getIntlayerAPI/tag.cjs`),g=require(`./getIntlayerAPI/user.cjs`),_=require(`./proxy.cjs`),v=require(`./distantDictionary/fetchDistantDictionaries.cjs`),y=require(`./distantDictionary/fetchDistantDictionary.cjs`);require(`./distantDictionary/index.cjs`),exports.fetchDistantDictionaries=v.fetchDistantDictionaries,exports.fetchDistantDictionary=y.fetchDistantDictionary,exports.fetcher=t.fetcher,exports.fetcherOptions=t.fetcherOptions,exports.getAiAPI=n.getAiAPI,exports.getAuditAPI=r.getAuditAPI,exports.getBitbucketAPI=i.getBitbucketAPI,exports.getDictionaryAPI=a.getDictionaryAPI,exports.getEditorAPI=o.getEditorAPI,exports.getGithubAPI=s.getGithubAPI,exports.getGitlabAPI=c.getGitlabAPI,exports.getIntlayerAPI=e.t,exports.getIntlayerAPIProxy=_.getIntlayerAPIProxy,exports.getNewsletterAPI=l.getNewsletterAPI,exports.getOAuthAPI=u.getOAuthAPI,exports.getOrganizationAPI=d.getOrganizationAPI,exports.getProjectAPI=f.getProjectAPI,exports.getSearchAPI=p.getSearchAPI,exports.getStripeAPI=m.getStripeAPI,exports.getTagAPI=h.getTagAPI,exports.getUserAPI=g.getUserAPI; |
@@ -1,2 +0,2 @@ | ||
| Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getIntlayerAPI/oAuth.cjs`),t=require(`./getIntlayerAPI/index.cjs`),n=e=>{if(!e)return;let t=e.accessTokenExpiresAt??e.expiresAt;if(t){let e=typeof t==`string`?Date.parse(t):t.getTime?.();if(typeof e==`number`&&Number.isFinite(e))return e}let n=e.expires_in??e.expiresIn;if(typeof n==`number`&&Number.isFinite(n))return Date.now()+n*1e3};let r,i,a;const o=(o={},s)=>{let c={...o},l=s?.editor?.clientId&&s?.editor?.clientSecret,u=t.getIntlayerAPI(c,s),d=()=>r?i?Date.now()+6e4>=i:!1:!0,f=async()=>{a||=(async()=>{let t=(await e.getOAuthAPI(s).getOAuth2AccessToken())?.data;r=t?.accessToken,i=n(t)})().finally(()=>{a=void 0}),await a},p=async()=>{d()&&await f()},m=()=>{r&&(c.headers={...c.headers??{},Authorization:`Bearer ${r}`})},h=(e,t=!l)=>new Proxy(e,{get(e,n,r){let i=Reflect.get(e,n,r);return typeof i==`function`?async(...n)=>{t||(await p(),m());try{return await i.apply(e,n)}catch(r){if(!t)return await f(),m(),await i.apply(e,n);throw r}}:i}});return{organization:h(u.organization),project:h(u.project),user:h(u.user),oAuth:h(u.oAuth,!0),dictionary:h(u.dictionary),stripe:h(u.stripe),ai:h(u.ai),tag:h(u.tag),search:h(u.search),editor:h(u.editor),newsletter:h(u.newsletter),github:h(u.github)}};exports.getIntlayerAPIProxy=o; | ||
| Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./getIntlayerAPI-CUu2tiLP.cjs`),t=require(`./getIntlayerAPI/oAuth.cjs`),n=e=>{if(!e)return;let t=e.accessTokenExpiresAt??e.expiresAt;if(t){let e=typeof t==`string`?Date.parse(t):t.getTime?.();if(typeof e==`number`&&Number.isFinite(e))return e}let n=e.expires_in??e.expiresIn;if(typeof n==`number`&&Number.isFinite(n))return Date.now()+n*1e3};let r,i,a;const o=(o={},s)=>{let c={...o},l=s?.editor?.clientId&&s?.editor?.clientSecret,u=e.t(c,s),d=()=>r?i?Date.now()+6e4>=i:!1:!0,f=async()=>{a||=(async()=>{let e=(await t.getOAuthAPI(s).getOAuth2AccessToken())?.data;r=e?.accessToken,i=n(e)})().finally(()=>{a=void 0}),await a},p=async()=>{d()&&await f()},m=()=>{r&&(c.headers={...c.headers??{},Authorization:`Bearer ${r}`})},h=(e,t=!l)=>new Proxy(e,{get(e,n,r){let i=Reflect.get(e,n,r);return typeof i==`function`?async(...n)=>{t||(await p(),m());try{return await i.apply(e,n)}catch(r){if(!t)return await f(),m(),await i.apply(e,n);throw r}}:i}});return{organization:h(u.organization),project:h(u.project),user:h(u.user),oAuth:h(u.oAuth,!0),dictionary:h(u.dictionary),stripe:h(u.stripe),ai:h(u.ai),tag:h(u.tag),search:h(u.search),editor:h(u.editor),newsletter:h(u.newsletter),github:h(u.github)}};exports.getIntlayerAPIProxy=o; | ||
| //# sourceMappingURL=proxy.cjs.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"proxy.cjs","names":["getIntlayerAPI","getOAuthAPI"],"sources":["../../src/proxy.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/types/config';\nimport type { FetcherOptions } from './fetcher';\nimport { getIntlayerAPI } from './getIntlayerAPI';\nimport type { IntlayerAPI } from './getIntlayerAPI/index';\nimport { getOAuthAPI } from './getIntlayerAPI/oAuth';\n\ntype OAuthTokenLike = {\n accessToken?: string;\n accessTokenExpiresAt?: string | Date;\n expires_in?: number;\n expiresIn?: number;\n expiresAt?: string | Date;\n};\n\nconst ONE_MINUTE_MS = 60_000;\n\n/**\n * Returns the expiration timestamp in ms from an OAuth token-like object.\n */\nconst getExpiryTimestamp = (\n token: OAuthTokenLike | undefined\n): number | undefined => {\n if (!token) return undefined;\n const dateLike = (token.accessTokenExpiresAt ?? token.expiresAt) as\n | string\n | Date\n | undefined;\n if (dateLike) {\n const ts =\n typeof dateLike === 'string'\n ? Date.parse(dateLike)\n : dateLike.getTime?.();\n if (typeof ts === 'number' && Number.isFinite(ts)) return ts;\n }\n const seconds = token.expires_in ?? token.expiresIn;\n if (typeof seconds === 'number' && Number.isFinite(seconds)) {\n return Date.now() + seconds * 1000;\n }\n return undefined;\n};\n\nlet currentAccessToken: string | undefined;\nlet currentExpiryTs: number | undefined;\nlet pendingRefresh: Promise<void> | undefined;\n\n/**\n * Build an auto-auth proxy around getIntlayerAPI that:\n * - Fetches an OAuth2 token when needed\n * - Injects Authorization header for each request\n * - Refreshes token proactively when near expiry\n *\n * The returned API matches the shape of getIntlayerAPI.\n */\nexport const getIntlayerAPIProxy = (\n baseAuthOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPI => {\n // Use a shared mutable auth options object captured by the API closures\n const authOptionsRef: FetcherOptions = { ...baseAuthOptions };\n const hasCMSAuth =\n intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;\n const baseApi = getIntlayerAPI(authOptionsRef, intlayerConfig);\n\n const needsRefresh = (): boolean => {\n if (!currentAccessToken) return true;\n if (!currentExpiryTs) return false; // If unknown, assume usable until failure\n\n return Date.now() + ONE_MINUTE_MS >= currentExpiryTs; // refresh 1 min before expiry\n };\n\n const refreshToken = async (): Promise<void> => {\n const doRefresh = async () => {\n const authApi = getOAuthAPI(intlayerConfig);\n const res = await authApi.getOAuth2AccessToken();\n const tokenData = res?.data as OAuthTokenLike | undefined;\n\n currentAccessToken = tokenData?.accessToken;\n currentExpiryTs = getExpiryTimestamp(tokenData);\n };\n\n if (!pendingRefresh) {\n pendingRefresh = doRefresh().finally(() => {\n pendingRefresh = undefined;\n });\n }\n await pendingRefresh;\n };\n\n const ensureValidToken = async () => {\n if (needsRefresh()) {\n await refreshToken();\n }\n };\n\n const applyAuthHeaderToRef = () => {\n if (!currentAccessToken) return;\n authOptionsRef.headers = {\n ...(authOptionsRef.headers ?? {}),\n Authorization: `Bearer ${currentAccessToken}`,\n } as HeadersInit;\n };\n\n const wrapSection = <T extends Record<string, unknown>>(\n section: T,\n skipAuth = !hasCMSAuth\n ): T => {\n return new Proxy(section, {\n get(target, prop, receiver) {\n const value = Reflect.get(target, prop, receiver);\n\n if (typeof value === 'function') {\n // Wrap section method to inject token and headers\n return async (...args: unknown[]) => {\n if (!skipAuth) {\n await ensureValidToken();\n applyAuthHeaderToRef();\n }\n\n try {\n return await value.apply(target, args);\n } catch (err) {\n // Best-effort retry: if token might be stale, refresh once and retry\n if (!skipAuth) {\n await refreshToken();\n applyAuthHeaderToRef();\n return await value.apply(target, args);\n }\n throw err;\n }\n };\n }\n\n return value;\n },\n });\n };\n\n return {\n organization: wrapSection(baseApi.organization),\n project: wrapSection(baseApi.project),\n user: wrapSection(baseApi.user),\n oAuth: wrapSection(baseApi.oAuth, true), // do NOT inject auth for token endpoint\n dictionary: wrapSection(baseApi.dictionary),\n stripe: wrapSection(baseApi.stripe),\n ai: wrapSection(baseApi.ai),\n tag: wrapSection(baseApi.tag),\n search: wrapSection(baseApi.search),\n editor: wrapSection(baseApi.editor),\n newsletter: wrapSection(baseApi.newsletter),\n github: wrapSection(baseApi.github),\n } as IntlayerAPI;\n};\n\nexport type IntlayerAPIProxy = ReturnType<typeof getIntlayerAPIProxy>;\n"],"mappings":"yJAmBM,EACJ,GACuB,CACvB,GAAI,CAAC,EAAO,OACZ,IAAM,EAAY,EAAM,sBAAwB,EAAM,UAItD,GAAI,EAAU,CACZ,IAAM,EACJ,OAAO,GAAa,SAChB,KAAK,MAAM,EAAS,CACpB,EAAS,WAAW,CAC1B,GAAI,OAAO,GAAO,UAAY,OAAO,SAAS,EAAG,CAAE,OAAO,EAE5D,IAAM,EAAU,EAAM,YAAc,EAAM,UAC1C,GAAI,OAAO,GAAY,UAAY,OAAO,SAAS,EAAQ,CACzD,OAAO,KAAK,KAAK,CAAG,EAAU,KAKlC,IAAI,EACA,EACA,EAUJ,MAAa,GACX,EAAkC,EAAE,CACpC,IACgB,CAEhB,IAAM,EAAiC,CAAE,GAAG,EAAiB,CACvD,EACJ,GAAgB,QAAQ,UAAY,GAAgB,QAAQ,aACxD,EAAUA,EAAAA,eAAe,EAAgB,EAAe,CAExD,MACC,EACA,EAEE,KAAK,KAAK,CAAG,KAAiB,EAFR,GADG,GAM5B,EAAe,SAA2B,CAU9C,AACE,KAVgB,SAAY,CAG5B,IAAM,GADM,MADIC,EAAAA,YAAY,EAAe,CACjB,sBAAsB,GACzB,KAEvB,EAAqB,GAAW,YAChC,EAAkB,EAAmB,EAAU,IAInB,CAAC,YAAc,CACzC,EAAiB,IAAA,IACjB,CAEJ,MAAM,GAGF,EAAmB,SAAY,CAC/B,GAAc,EAChB,MAAM,GAAc,EAIlB,MAA6B,CAC5B,IACL,EAAe,QAAU,CACvB,GAAI,EAAe,SAAW,EAAE,CAChC,cAAe,UAAU,IAC1B,GAGG,GACJ,EACA,EAAW,CAAC,IAEL,IAAI,MAAM,EAAS,CACxB,IAAI,EAAQ,EAAM,EAAU,CAC1B,IAAM,EAAQ,QAAQ,IAAI,EAAQ,EAAM,EAAS,CAwBjD,OAtBI,OAAO,GAAU,WAEZ,MAAO,GAAG,IAAoB,CAC9B,IACH,MAAM,GAAkB,CACxB,GAAsB,EAGxB,GAAI,CACF,OAAO,MAAM,EAAM,MAAM,EAAQ,EAAK,OAC/B,EAAK,CAEZ,GAAI,CAAC,EAGH,OAFA,MAAM,GAAc,CACpB,GAAsB,CACf,MAAM,EAAM,MAAM,EAAQ,EAAK,CAExC,MAAM,IAKL,GAEV,CAAC,CAGJ,MAAO,CACL,aAAc,EAAY,EAAQ,aAAa,CAC/C,QAAS,EAAY,EAAQ,QAAQ,CACrC,KAAM,EAAY,EAAQ,KAAK,CAC/B,MAAO,EAAY,EAAQ,MAAO,GAAK,CACvC,WAAY,EAAY,EAAQ,WAAW,CAC3C,OAAQ,EAAY,EAAQ,OAAO,CACnC,GAAI,EAAY,EAAQ,GAAG,CAC3B,IAAK,EAAY,EAAQ,IAAI,CAC7B,OAAQ,EAAY,EAAQ,OAAO,CACnC,OAAQ,EAAY,EAAQ,OAAO,CACnC,WAAY,EAAY,EAAQ,WAAW,CAC3C,OAAQ,EAAY,EAAQ,OAAO,CACpC"} | ||
| {"version":3,"file":"proxy.cjs","names":["getIntlayerAPI","getOAuthAPI"],"sources":["../../src/proxy.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/types/config';\nimport type { FetcherOptions } from './fetcher';\nimport { getIntlayerAPI } from './getIntlayerAPI';\nimport type { IntlayerAPI } from './getIntlayerAPI/index';\nimport { getOAuthAPI } from './getIntlayerAPI/oAuth';\n\ntype OAuthTokenLike = {\n accessToken?: string;\n accessTokenExpiresAt?: string | Date;\n expires_in?: number;\n expiresIn?: number;\n expiresAt?: string | Date;\n};\n\nconst ONE_MINUTE_MS = 60_000;\n\n/**\n * Returns the expiration timestamp in ms from an OAuth token-like object.\n */\nconst getExpiryTimestamp = (\n token: OAuthTokenLike | undefined\n): number | undefined => {\n if (!token) return undefined;\n const dateLike = (token.accessTokenExpiresAt ?? token.expiresAt) as\n | string\n | Date\n | undefined;\n if (dateLike) {\n const ts =\n typeof dateLike === 'string'\n ? Date.parse(dateLike)\n : dateLike.getTime?.();\n if (typeof ts === 'number' && Number.isFinite(ts)) return ts;\n }\n const seconds = token.expires_in ?? token.expiresIn;\n if (typeof seconds === 'number' && Number.isFinite(seconds)) {\n return Date.now() + seconds * 1000;\n }\n return undefined;\n};\n\nlet currentAccessToken: string | undefined;\nlet currentExpiryTs: number | undefined;\nlet pendingRefresh: Promise<void> | undefined;\n\n/**\n * Build an auto-auth proxy around getIntlayerAPI that:\n * - Fetches an OAuth2 token when needed\n * - Injects Authorization header for each request\n * - Refreshes token proactively when near expiry\n *\n * The returned API matches the shape of getIntlayerAPI.\n */\nexport const getIntlayerAPIProxy = (\n baseAuthOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPI => {\n // Use a shared mutable auth options object captured by the API closures\n const authOptionsRef: FetcherOptions = { ...baseAuthOptions };\n const hasCMSAuth =\n intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;\n const baseApi = getIntlayerAPI(authOptionsRef, intlayerConfig);\n\n const needsRefresh = (): boolean => {\n if (!currentAccessToken) return true;\n if (!currentExpiryTs) return false; // If unknown, assume usable until failure\n\n return Date.now() + ONE_MINUTE_MS >= currentExpiryTs; // refresh 1 min before expiry\n };\n\n const refreshToken = async (): Promise<void> => {\n const doRefresh = async () => {\n const authApi = getOAuthAPI(intlayerConfig);\n const res = await authApi.getOAuth2AccessToken();\n const tokenData = res?.data as OAuthTokenLike | undefined;\n\n currentAccessToken = tokenData?.accessToken;\n currentExpiryTs = getExpiryTimestamp(tokenData);\n };\n\n if (!pendingRefresh) {\n pendingRefresh = doRefresh().finally(() => {\n pendingRefresh = undefined;\n });\n }\n await pendingRefresh;\n };\n\n const ensureValidToken = async () => {\n if (needsRefresh()) {\n await refreshToken();\n }\n };\n\n const applyAuthHeaderToRef = () => {\n if (!currentAccessToken) return;\n authOptionsRef.headers = {\n ...(authOptionsRef.headers ?? {}),\n Authorization: `Bearer ${currentAccessToken}`,\n } as HeadersInit;\n };\n\n const wrapSection = <T extends Record<string, unknown>>(\n section: T,\n skipAuth = !hasCMSAuth\n ): T => {\n return new Proxy(section, {\n get(target, prop, receiver) {\n const value = Reflect.get(target, prop, receiver);\n\n if (typeof value === 'function') {\n // Wrap section method to inject token and headers\n return async (...args: unknown[]) => {\n if (!skipAuth) {\n await ensureValidToken();\n applyAuthHeaderToRef();\n }\n\n try {\n return await value.apply(target, args);\n } catch (err) {\n // Best-effort retry: if token might be stale, refresh once and retry\n if (!skipAuth) {\n await refreshToken();\n applyAuthHeaderToRef();\n return await value.apply(target, args);\n }\n throw err;\n }\n };\n }\n\n return value;\n },\n });\n };\n\n return {\n organization: wrapSection(baseApi.organization),\n project: wrapSection(baseApi.project),\n user: wrapSection(baseApi.user),\n oAuth: wrapSection(baseApi.oAuth, true), // do NOT inject auth for token endpoint\n dictionary: wrapSection(baseApi.dictionary),\n stripe: wrapSection(baseApi.stripe),\n ai: wrapSection(baseApi.ai),\n tag: wrapSection(baseApi.tag),\n search: wrapSection(baseApi.search),\n editor: wrapSection(baseApi.editor),\n newsletter: wrapSection(baseApi.newsletter),\n github: wrapSection(baseApi.github),\n } as IntlayerAPI;\n};\n\nexport type IntlayerAPIProxy = ReturnType<typeof getIntlayerAPIProxy>;\n"],"mappings":"4JAmBM,EACJ,GACuB,CACvB,GAAI,CAAC,EAAO,OACZ,IAAM,EAAY,EAAM,sBAAwB,EAAM,UAItD,GAAI,EAAU,CACZ,IAAM,EACJ,OAAO,GAAa,SAChB,KAAK,MAAM,EAAS,CACpB,EAAS,WAAW,CAC1B,GAAI,OAAO,GAAO,UAAY,OAAO,SAAS,EAAG,CAAE,OAAO,EAE5D,IAAM,EAAU,EAAM,YAAc,EAAM,UAC1C,GAAI,OAAO,GAAY,UAAY,OAAO,SAAS,EAAQ,CACzD,OAAO,KAAK,KAAK,CAAG,EAAU,KAKlC,IAAI,EACA,EACA,EAUJ,MAAa,GACX,EAAkC,EAAE,CACpC,IACgB,CAEhB,IAAM,EAAiC,CAAE,GAAG,EAAiB,CACvD,EACJ,GAAgB,QAAQ,UAAY,GAAgB,QAAQ,aACxD,EAAUA,EAAAA,EAAe,EAAgB,EAAe,CAExD,MACC,EACA,EAEE,KAAK,KAAK,CAAG,KAAiB,EAFR,GADG,GAM5B,EAAe,SAA2B,CAU9C,AACE,KAVgB,SAAY,CAG5B,IAAM,GADM,MADIC,EAAAA,YAAY,EAAe,CACjB,sBAAsB,GACzB,KAEvB,EAAqB,GAAW,YAChC,EAAkB,EAAmB,EAAU,IAInB,CAAC,YAAc,CACzC,EAAiB,IAAA,IACjB,CAEJ,MAAM,GAGF,EAAmB,SAAY,CAC/B,GAAc,EAChB,MAAM,GAAc,EAIlB,MAA6B,CAC5B,IACL,EAAe,QAAU,CACvB,GAAI,EAAe,SAAW,EAAE,CAChC,cAAe,UAAU,IAC1B,GAGG,GACJ,EACA,EAAW,CAAC,IAEL,IAAI,MAAM,EAAS,CACxB,IAAI,EAAQ,EAAM,EAAU,CAC1B,IAAM,EAAQ,QAAQ,IAAI,EAAQ,EAAM,EAAS,CAwBjD,OAtBI,OAAO,GAAU,WAEZ,MAAO,GAAG,IAAoB,CAC9B,IACH,MAAM,GAAkB,CACxB,GAAsB,EAGxB,GAAI,CACF,OAAO,MAAM,EAAM,MAAM,EAAQ,EAAK,OAC/B,EAAK,CAEZ,GAAI,CAAC,EAGH,OAFA,MAAM,GAAc,CACpB,GAAsB,CACf,MAAM,EAAM,MAAM,EAAQ,EAAK,CAExC,MAAM,IAKL,GAEV,CAAC,CAGJ,MAAO,CACL,aAAc,EAAY,EAAQ,aAAa,CAC/C,QAAS,EAAY,EAAQ,QAAQ,CACrC,KAAM,EAAY,EAAQ,KAAK,CAC/B,MAAO,EAAY,EAAQ,MAAO,GAAK,CACvC,WAAY,EAAY,EAAQ,WAAW,CAC3C,OAAQ,EAAY,EAAQ,OAAO,CACnC,GAAI,EAAY,EAAQ,GAAG,CAC3B,IAAK,EAAY,EAAQ,IAAI,CAC7B,OAAQ,EAAY,EAAQ,OAAO,CACnC,OAAQ,EAAY,EAAQ,OAAO,CACnC,WAAY,EAAY,EAAQ,WAAW,CAC3C,OAAQ,EAAY,EAAQ,OAAO,CACpC"} |
@@ -1,1 +0,1 @@ | ||
| import{fetcher as e,fetcherOptions as t}from"./fetcher.mjs";import{getAiAPI as n}from"./getIntlayerAPI/ai.mjs";import{getAuditAPI as r}from"./getIntlayerAPI/audit.mjs";import{getBitbucketAPI as i}from"./getIntlayerAPI/bitbucket.mjs";import{getDictionaryAPI as a}from"./getIntlayerAPI/dictionary.mjs";import{getEditorAPI as o}from"./getIntlayerAPI/editor.mjs";import{getGithubAPI as s}from"./getIntlayerAPI/github.mjs";import{getGitlabAPI as c}from"./getIntlayerAPI/gitlab.mjs";import{getNewsletterAPI as l}from"./getIntlayerAPI/newsletter.mjs";import{getOAuthAPI as u}from"./getIntlayerAPI/oAuth.mjs";import{getOrganizationAPI as d}from"./getIntlayerAPI/organization.mjs";import{getProjectAPI as f}from"./getIntlayerAPI/project.mjs";import{getSearchAPI as p}from"./getIntlayerAPI/search.mjs";import{getStripeAPI as m}from"./getIntlayerAPI/stripe.mjs";import{getTagAPI as h}from"./getIntlayerAPI/tag.mjs";import{getUserAPI as g}from"./getIntlayerAPI/user.mjs";import{getIntlayerAPI as _}from"./getIntlayerAPI/index.mjs";import{getIntlayerAPIProxy as v}from"./proxy.mjs";import{fetchDistantDictionaries as y}from"./distantDictionary/fetchDistantDictionaries.mjs";import{fetchDistantDictionary as b}from"./distantDictionary/fetchDistantDictionary.mjs";export{y as fetchDistantDictionaries,b as fetchDistantDictionary,e as fetcher,t as fetcherOptions,n as getAiAPI,r as getAuditAPI,i as getBitbucketAPI,a as getDictionaryAPI,o as getEditorAPI,s as getGithubAPI,c as getGitlabAPI,_ as getIntlayerAPI,v as getIntlayerAPIProxy,l as getNewsletterAPI,u as getOAuthAPI,d as getOrganizationAPI,f as getProjectAPI,p as getSearchAPI,m as getStripeAPI,h as getTagAPI,g as getUserAPI}; | ||
| import{fetcher as e,fetcherOptions as t}from"./fetcher.mjs";import"./types.mjs";import{getAiAPI as n}from"./getIntlayerAPI/ai.mjs";import{getAuditAPI as r}from"./getIntlayerAPI/audit.mjs";import{getBitbucketAPI as i}from"./getIntlayerAPI/bitbucket.mjs";import{getDictionaryAPI as a}from"./getIntlayerAPI/dictionary.mjs";import{getEditorAPI as o}from"./getIntlayerAPI/editor.mjs";import{getGithubAPI as s}from"./getIntlayerAPI/github.mjs";import{getGitlabAPI as c}from"./getIntlayerAPI/gitlab.mjs";import{getNewsletterAPI as l}from"./getIntlayerAPI/newsletter.mjs";import{getOAuthAPI as u}from"./getIntlayerAPI/oAuth.mjs";import{getOrganizationAPI as d}from"./getIntlayerAPI/organization.mjs";import{getProjectAPI as f}from"./getIntlayerAPI/project.mjs";import{getSearchAPI as p}from"./getIntlayerAPI/search.mjs";import{getStripeAPI as m}from"./getIntlayerAPI/stripe.mjs";import{getTagAPI as h}from"./getIntlayerAPI/tag.mjs";import{getUserAPI as g}from"./getIntlayerAPI/user.mjs";import{getIntlayerAPI as _}from"./getIntlayerAPI/index.mjs";import{getIntlayerAPIProxy as v}from"./proxy.mjs";import{fetchDistantDictionaries as y}from"./distantDictionary/fetchDistantDictionaries.mjs";import{fetchDistantDictionary as b}from"./distantDictionary/fetchDistantDictionary.mjs";import"./distantDictionary/index.mjs";export{y as fetchDistantDictionaries,b as fetchDistantDictionary,e as fetcher,t as fetcherOptions,n as getAiAPI,r as getAuditAPI,i as getBitbucketAPI,a as getDictionaryAPI,o as getEditorAPI,s as getGithubAPI,c as getGitlabAPI,_ as getIntlayerAPI,v as getIntlayerAPIProxy,l as getNewsletterAPI,u as getOAuthAPI,d as getOrganizationAPI,f as getProjectAPI,p as getSearchAPI,m as getStripeAPI,h as getTagAPI,g as getUserAPI}; |
@@ -1,11 +0,2 @@ | ||
| import { DictionaryAPI } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/distantDictionary/fetchDistantDictionaries.d.ts | ||
| /** | ||
| * Fetch distant dictionary | ||
| */ | ||
| declare const fetchDistantDictionaries: (intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI[] | null | undefined>; | ||
| //#endregion | ||
| export { fetchDistantDictionaries }; | ||
| //# sourceMappingURL=fetchDistantDictionaries.d.ts.map | ||
| import { t as fetchDistantDictionaries } from "../fetchDistantDictionaries-CLQEr6NS.js"; | ||
| export { fetchDistantDictionaries }; |
@@ -1,11 +0,2 @@ | ||
| import { DictionaryAPI } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/distantDictionary/fetchDistantDictionary.d.ts | ||
| /** | ||
| * Fetch distant dictionary | ||
| */ | ||
| declare const fetchDistantDictionary: (dictionaryKey: string, intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI | undefined>; | ||
| //#endregion | ||
| export { fetchDistantDictionary }; | ||
| //# sourceMappingURL=fetchDistantDictionary.d.ts.map | ||
| import { t as fetchDistantDictionary } from "../fetchDistantDictionary-C7esreMl.js"; | ||
| export { fetchDistantDictionary }; |
@@ -1,3 +0,3 @@ | ||
| import { fetchDistantDictionaries } from "./fetchDistantDictionaries.js"; | ||
| import { fetchDistantDictionary } from "./fetchDistantDictionary.js"; | ||
| import { t as fetchDistantDictionaries } from "../fetchDistantDictionaries-CLQEr6NS.js"; | ||
| import { t as fetchDistantDictionary } from "../fetchDistantDictionary-C7esreMl.js"; | ||
| export { fetchDistantDictionaries, fetchDistantDictionary }; |
@@ -1,32 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { AIOptions, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationMetadataBody, AuditTagBody, ChatCompletionRequestMessage, CustomQueryBody, GetDiscussionsParams, TranslateJSONBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/ai.d.ts | ||
| type AutocompleteBody = { | ||
| text: string; | ||
| aiOptions?: AIOptions; | ||
| contextBefore?: string; | ||
| currentLine?: string; | ||
| contextAfter?: string; | ||
| }; | ||
| type AskDocQuestionBody = { | ||
| messages: ChatCompletionRequestMessage[]; | ||
| discussionId: string; | ||
| onMessage?: (chunk: string) => void; | ||
| onDone?: (response: AskDocQuestionResult) => void; | ||
| }; | ||
| declare const getAiAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| customQuery: (body?: CustomQueryBody, otherOptions?: FetcherOptions) => Promise<CustomQueryResult>; | ||
| translateJSON: (body?: TranslateJSONBody, otherOptions?: FetcherOptions) => Promise<TranslateJSONResult>; | ||
| auditContentDeclaration: (body?: AuditContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationResult>; | ||
| auditContentDeclarationField: (body?: AuditContentDeclarationFieldBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationFieldResult>; | ||
| auditContentDeclarationMetadata: (body?: AuditContentDeclarationMetadataBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationMetadataResult>; | ||
| auditTag: (body?: AuditTagBody, otherOptions?: FetcherOptions) => Promise<AuditTagResult>; | ||
| askDocQuestion: (body?: AskDocQuestionBody, otherOptions?: FetcherOptions) => Promise<void>; | ||
| autocomplete: (body?: AutocompleteBody, otherOptions?: FetcherOptions) => Promise<AutocompleteResponse>; | ||
| getDiscussions: (params?: GetDiscussionsParams, otherOptions?: FetcherOptions) => Promise<GetDiscussionsResult>; | ||
| }; | ||
| //#endregion | ||
| export { AskDocQuestionBody, type AskDocQuestionResult, AutocompleteBody, getAiAPI }; | ||
| //# sourceMappingURL=ai.d.ts.map | ||
| import { i as getAiAPI, n as AskDocQuestionResult, r as AutocompleteBody, t as AskDocQuestionBody } from "../ai-FbIMwui1.js"; | ||
| export { AskDocQuestionBody, AskDocQuestionResult, AutocompleteBody, getAiAPI }; |
@@ -1,44 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { AuditEvent, GetRecursiveAuditStatusResult, StartRecursiveAuditResult } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/audit.d.ts | ||
| type ScanUrlBody = { | ||
| url: string; | ||
| onMessage?: (event: AuditEvent) => void; | ||
| onDone?: () => void; | ||
| }; | ||
| type DiscoverUrlsParams = { | ||
| url: string; | ||
| }; | ||
| type DiscoverUrlsResult = { | ||
| urls: string[]; | ||
| }; | ||
| type StartRecursiveAuditBody = { | ||
| url: string; | ||
| urls?: string[]; | ||
| }; | ||
| type GetRecursiveAuditStatusParams = { | ||
| jobId: string; | ||
| }; | ||
| type RecursiveAuditJobParams = { | ||
| jobId: string; | ||
| }; | ||
| declare const getAuditAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| discoverUrls: (params?: DiscoverUrlsParams, otherOptions?: FetcherOptions) => Promise<DiscoverUrlsResult>; | ||
| scanUrl: (body?: ScanUrlBody, otherOptions?: FetcherOptions) => Promise<void>; | ||
| startRecursiveAudit: (body?: StartRecursiveAuditBody, otherOptions?: FetcherOptions) => Promise<StartRecursiveAuditResult>; | ||
| getRecursiveAuditStatus: (params?: GetRecursiveAuditStatusParams, otherOptions?: FetcherOptions) => Promise<GetRecursiveAuditStatusResult>; | ||
| cancelRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{ | ||
| success: boolean; | ||
| }>; | ||
| pauseRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{ | ||
| success: boolean; | ||
| }>; | ||
| resumeRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{ | ||
| success: boolean; | ||
| }>; | ||
| }; | ||
| //#endregion | ||
| export { type AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, type GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, type StartRecursiveAuditResult, getAuditAPI }; | ||
| //# sourceMappingURL=audit.d.ts.map | ||
| import { a as GetRecursiveAuditStatusResult, c as StartRecursiveAuditBody, i as GetRecursiveAuditStatusParams, l as StartRecursiveAuditResult, n as DiscoverUrlsParams, o as RecursiveAuditJobParams, r as DiscoverUrlsResult, s as ScanUrlBody, t as AuditEvent, u as getAuditAPI } from "../audit-DzTxbapP.js"; | ||
| export { AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, StartRecursiveAuditResult, getAuditAPI }; |
@@ -1,81 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/bitbucket.d.ts | ||
| type BitbucketRepository = { | ||
| uuid: string; | ||
| name: string; | ||
| full_name: string; | ||
| slug: string; | ||
| mainbranch?: { | ||
| name: string; | ||
| type: string; | ||
| }; | ||
| links: { | ||
| html: { | ||
| href: string; | ||
| }; | ||
| }; | ||
| workspace: { | ||
| slug: string; | ||
| name: string; | ||
| uuid: string; | ||
| }; | ||
| owner: { | ||
| display_name: string; | ||
| username?: string; | ||
| uuid: string; | ||
| }; | ||
| updated_on: string; | ||
| is_private: boolean; | ||
| }; | ||
| type BitbucketAuthCallbackBody = { | ||
| code: string; | ||
| }; | ||
| type BitbucketAuthCallbackResult = { | ||
| data: { | ||
| token: string; | ||
| }; | ||
| }; | ||
| type BitbucketListReposResult = { | ||
| data: BitbucketRepository[]; | ||
| }; | ||
| type BitbucketCheckConfigBody = { | ||
| token?: string; | ||
| workspace: string; | ||
| repoSlug: string; | ||
| branch?: string; | ||
| }; | ||
| type BitbucketCheckConfigResult = { | ||
| data: { | ||
| hasConfig: boolean; | ||
| configPaths: string[]; | ||
| }; | ||
| }; | ||
| type BitbucketGetConfigFileBody = { | ||
| token?: string; | ||
| workspace: string; | ||
| repoSlug: string; | ||
| branch?: string; | ||
| path?: string; | ||
| }; | ||
| type BitbucketGetConfigFileResult = { | ||
| data: { | ||
| content: string; | ||
| }; | ||
| }; | ||
| type BitbucketGetAuthUrlResult = { | ||
| data: { | ||
| authUrl: string; | ||
| }; | ||
| }; | ||
| declare const getBitbucketAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<BitbucketGetAuthUrlResult>; | ||
| authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<BitbucketAuthCallbackResult>; | ||
| getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<BitbucketListReposResult>; | ||
| checkIntlayerConfig: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, otherOptions?: FetcherOptions) => Promise<BitbucketCheckConfigResult>; | ||
| getConfigFile: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<BitbucketGetConfigFileResult>; | ||
| }; | ||
| //#endregion | ||
| export { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI }; | ||
| //# sourceMappingURL=bitbucket.d.ts.map | ||
| import { a as BitbucketGetAuthUrlResult, c as BitbucketListReposResult, i as BitbucketCheckConfigResult, l as BitbucketRepository, n as BitbucketAuthCallbackResult, o as BitbucketGetConfigFileBody, r as BitbucketCheckConfigBody, s as BitbucketGetConfigFileResult, t as BitbucketAuthCallbackBody, u as getBitbucketAPI } from "../bitbucket-DeRx5IlR.js"; | ||
| export { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI }; |
@@ -1,18 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { AddDictionaryBody, DeleteDictionaryParam, GetDictionariesParams, GetDictionaryParams, GetDictionaryQuery, PushDictionariesBody, UpdateDictionaryBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/dictionary.d.ts | ||
| declare const getDictionaryAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getDictionaries: (filters?: GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>; | ||
| getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>; | ||
| getDictionariesUpdateTimestamp: (otherOptions?: FetcherOptions) => Promise<GetDictionariesUpdateTimestampResult>; | ||
| getDictionary: (dictionaryKey: GetDictionaryParams["dictionaryKey"], version?: GetDictionaryQuery["version"], otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>; | ||
| pushDictionaries: (dictionaries: PushDictionariesBody["dictionaries"], otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>; | ||
| addDictionary: (body: AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>; | ||
| updateDictionary: (dictionary: UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>; | ||
| deleteDictionary: (id: DeleteDictionaryParam["dictionaryId"], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>; | ||
| }; | ||
| //#endregion | ||
| export { getDictionaryAPI }; | ||
| //# sourceMappingURL=dictionary.d.ts.map | ||
| import { t as getDictionaryAPI } from "../dictionary-W5LSPsxq.js"; | ||
| export { getDictionaryAPI }; |
@@ -1,14 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { GetConfigurationResult } from "../intlayer-editor/server/dist/controllers/configuration.controller.js"; | ||
| import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "../intlayer-editor/server/dist/controllers/dictionary.controller.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/editor.d.ts | ||
| declare const getEditorAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>; | ||
| getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>; | ||
| writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>; | ||
| }; | ||
| //#endregion | ||
| export { getEditorAPI }; | ||
| //# sourceMappingURL=editor.d.ts.map | ||
| import { t as getEditorAPI } from "../editor-DTBh5ovU.js"; | ||
| export { getEditorAPI }; |
@@ -1,65 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/github.d.ts | ||
| type GitHubRepository = { | ||
| id: number; | ||
| name: string; | ||
| full_name: string; | ||
| owner: { | ||
| login: string; | ||
| id: number; | ||
| }; | ||
| html_url: string; | ||
| default_branch: string; | ||
| private: boolean; | ||
| }; | ||
| type GitHubAuthCallbackBody = { | ||
| code: string; | ||
| }; | ||
| type GitHubAuthCallbackResult = { | ||
| data: { | ||
| token: string; | ||
| }; | ||
| }; | ||
| type GitHubListReposResult = { | ||
| data: GitHubRepository[]; | ||
| }; | ||
| type GitHubCheckConfigBody = { | ||
| token?: string; | ||
| owner: string; | ||
| repository: string; | ||
| branch?: string; | ||
| }; | ||
| type GitHubCheckConfigResult = { | ||
| data: { | ||
| hasConfig: boolean; | ||
| }; | ||
| }; | ||
| type GitHubGetConfigFileBody = { | ||
| token?: string; | ||
| owner: string; | ||
| repository: string; | ||
| branch?: string; | ||
| path?: string; | ||
| }; | ||
| type GitHubGetConfigFileResult = { | ||
| data: { | ||
| content: string; | ||
| }; | ||
| }; | ||
| type GitHubGetAuthUrlResult = { | ||
| data: { | ||
| authUrl: string; | ||
| }; | ||
| }; | ||
| declare const getGithubAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<GitHubGetAuthUrlResult>; | ||
| authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<GitHubAuthCallbackResult>; | ||
| getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<GitHubListReposResult>; | ||
| checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<GitHubCheckConfigResult>; | ||
| getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<GitHubGetConfigFileResult>; | ||
| }; | ||
| //#endregion | ||
| export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubListReposResult, GitHubRepository, getGithubAPI }; | ||
| //# sourceMappingURL=github.d.ts.map | ||
| import { a as GitHubGetAuthUrlResult, c as GitHubListReposResult, i as GitHubCheckConfigResult, l as GitHubRepository, n as GitHubAuthCallbackResult, o as GitHubGetConfigFileBody, r as GitHubCheckConfigBody, s as GitHubGetConfigFileResult, t as GitHubAuthCallbackBody, u as getGithubAPI } from "../github-D077Il7G.js"; | ||
| export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubListReposResult, GitHubRepository, getGithubAPI }; |
@@ -1,70 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/gitlab.d.ts | ||
| type GitLabProject = { | ||
| id: number; | ||
| name: string; | ||
| path_with_namespace: string; | ||
| web_url: string; | ||
| default_branch: string; | ||
| visibility: string; | ||
| last_activity_at: string; | ||
| namespace: { | ||
| id: number; | ||
| name: string; | ||
| path: string; | ||
| }; | ||
| }; | ||
| type GitLabAuthCallbackBody = { | ||
| code: string; | ||
| redirectUri: string; | ||
| instanceUrl?: string; | ||
| }; | ||
| type GitLabAuthCallbackResult = { | ||
| data: { | ||
| token: string; | ||
| }; | ||
| }; | ||
| type GitLabListProjectsResult = { | ||
| data: GitLabProject[]; | ||
| }; | ||
| type GitLabCheckConfigBody = { | ||
| token?: string; | ||
| projectId: number; | ||
| branch?: string; | ||
| instanceUrl?: string; | ||
| }; | ||
| type GitLabCheckConfigResult = { | ||
| data: { | ||
| hasConfig: boolean; | ||
| configPaths: string[]; | ||
| }; | ||
| }; | ||
| type GitLabGetConfigFileBody = { | ||
| token?: string; | ||
| projectId: number; | ||
| branch?: string; | ||
| path?: string; | ||
| instanceUrl?: string; | ||
| }; | ||
| type GitLabGetConfigFileResult = { | ||
| data: { | ||
| content: string; | ||
| }; | ||
| }; | ||
| type GitLabGetAuthUrlResult = { | ||
| data: { | ||
| authUrl: string; | ||
| }; | ||
| }; | ||
| declare const getGitlabAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getAuthUrl: (redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetAuthUrlResult>; | ||
| authenticate: (code: string, redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabAuthCallbackResult>; | ||
| getProjects: (token?: string | null, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabListProjectsResult>; | ||
| checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabCheckConfigResult>; | ||
| getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetConfigFileResult>; | ||
| }; | ||
| //#endregion | ||
| export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI }; | ||
| //# sourceMappingURL=gitlab.d.ts.map | ||
| import { a as GitLabGetAuthUrlResult, c as GitLabListProjectsResult, i as GitLabCheckConfigResult, l as GitLabProject, n as GitLabAuthCallbackResult, o as GitLabGetConfigFileBody, r as GitLabCheckConfigBody, s as GitLabGetConfigFileResult, t as GitLabAuthCallbackBody, u as getGitlabAPI } from "../gitlab-BrWydMCh.js"; | ||
| export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI }; |
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { getAiAPI } from "./ai.js"; | ||
| import { getAuditAPI } from "./audit.js"; | ||
| import { getBitbucketAPI } from "./bitbucket.js"; | ||
| import { getDictionaryAPI } from "./dictionary.js"; | ||
| import { getEditorAPI } from "./editor.js"; | ||
| import { getGithubAPI } from "./github.js"; | ||
| import { getGitlabAPI } from "./gitlab.js"; | ||
| import { getNewsletterAPI } from "./newsletter.js"; | ||
| import { getOAuthAPI } from "./oAuth.js"; | ||
| import { getOrganizationAPI } from "./organization.js"; | ||
| import { getProjectAPI } from "./project.js"; | ||
| import { getSearchAPI } from "./search.js"; | ||
| import { getShowcaseProjectAPI } from "./showcaseProject.js"; | ||
| import { getStripeAPI } from "./stripe.js"; | ||
| import { getTagAPI } from "./tag.js"; | ||
| import { getUserAPI } from "./user.js"; | ||
| import { i as getAiAPI } from "../ai-FbIMwui1.js"; | ||
| import { u as getAuditAPI } from "../audit-DzTxbapP.js"; | ||
| import { u as getBitbucketAPI } from "../bitbucket-DeRx5IlR.js"; | ||
| import { t as getDictionaryAPI } from "../dictionary-W5LSPsxq.js"; | ||
| import { t as getEditorAPI } from "../editor-DTBh5ovU.js"; | ||
| import { u as getGithubAPI } from "../github-D077Il7G.js"; | ||
| import { u as getGitlabAPI } from "../gitlab-BrWydMCh.js"; | ||
| import { t as getNewsletterAPI } from "../newsletter-Dg_6QDY_.js"; | ||
| import { t as getOAuthAPI } from "../oAuth-DfQmGzLO.js"; | ||
| import { t as getOrganizationAPI } from "../organization-CNkB8dnj.js"; | ||
| import { t as getProjectAPI } from "../project-DKLgh9Mz.js"; | ||
| import { t as getSearchAPI } from "../search-CVbo1OMK.js"; | ||
| import { r as getShowcaseProjectAPI } from "../showcaseProject-1zcpB4aW.js"; | ||
| import { t as getStripeAPI } from "../stripe-vRfMjdAc.js"; | ||
| import { t as getTagAPI } from "../tag-0oc2-9J5.js"; | ||
| import { t as getUserAPI } from "../user-BVi1Ho0Q.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
@@ -19,0 +19,0 @@ |
@@ -1,13 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/newsletter.d.ts | ||
| declare const getNewsletterAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>; | ||
| unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>; | ||
| getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>; | ||
| }; | ||
| //#endregion | ||
| export { getNewsletterAPI }; | ||
| //# sourceMappingURL=newsletter.d.ts.map | ||
| import { t as getNewsletterAPI } from "../newsletter-Dg_6QDY_.js"; | ||
| export { getNewsletterAPI }; |
@@ -1,10 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/oAuth.d.ts | ||
| declare const getOAuthAPI: (intlayerConfig: IntlayerConfig) => { | ||
| getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>; | ||
| }; | ||
| //#endregion | ||
| export { getOAuthAPI }; | ||
| //# sourceMappingURL=oAuth.d.ts.map | ||
| import { t as getOAuthAPI } from "../oAuth-DfQmGzLO.js"; | ||
| export { getOAuthAPI }; |
@@ -1,20 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMembersBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/organization.d.ts | ||
| declare const getOrganizationAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>; | ||
| getOrganization: (organizationId: GetOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>; | ||
| addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>; | ||
| addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>; | ||
| updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>; | ||
| updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>; | ||
| updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>; | ||
| deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>; | ||
| selectOrganization: (organizationId: SelectOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>; | ||
| unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>; | ||
| }; | ||
| //#endregion | ||
| export { getOrganizationAPI }; | ||
| //# sourceMappingURL=organization.d.ts.map | ||
| import { t as getOrganizationAPI } from "../organization-CNkB8dnj.js"; | ||
| export { getOrganizationAPI }; |
@@ -1,25 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, TriggerWebhookBody, UpdateProjectBody, UpdateProjectMembersBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/project.d.ts | ||
| declare const getProjectAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>; | ||
| addProject: (project: AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>; | ||
| updateProject: (project: UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>; | ||
| updateProjectMembers: (body: UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>; | ||
| pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>; | ||
| deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>; | ||
| selectProject: (projectId: SelectProjectParam["projectId"], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>; | ||
| unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>; | ||
| addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>; | ||
| deleteAccessKey: (clientId: DeleteAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>; | ||
| refreshAccessKey: (clientId: RefreshAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>; | ||
| triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>; | ||
| triggerWebhook: (webhookIndex: TriggerWebhookBody["webhookIndex"], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>; | ||
| getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>; | ||
| pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>; | ||
| }; | ||
| //#endregion | ||
| export { getProjectAPI }; | ||
| //# sourceMappingURL=project.d.ts.map | ||
| import { t as getProjectAPI } from "../project-DKLgh9Mz.js"; | ||
| export { getProjectAPI }; |
@@ -1,11 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { SearchDocUtilParams } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/search.d.ts | ||
| declare const getSearchAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>; | ||
| }; | ||
| //#endregion | ||
| export { getSearchAPI }; | ||
| //# sourceMappingURL=search.d.ts.map | ||
| import { t as getSearchAPI } from "../search-CVbo1OMK.js"; | ||
| export { getSearchAPI }; |
@@ -1,33 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { GetShowcaseProjectByIdParams, SubmitShowcaseProjectBody, ToggleShowcaseDownvoteBody, ToggleShowcaseUpvoteBody, UpdateShowcaseProjectBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/showcaseProject.d.ts | ||
| type ShowcaseProjectsQuery = { | ||
| page?: number; | ||
| pageSize?: number; | ||
| search?: string; | ||
| selectedUseCases?: string[]; | ||
| isOpenSource?: boolean; | ||
| }; | ||
| type OtherShowcaseProjectsQuery = { | ||
| excludeId: string; | ||
| limit?: number; | ||
| }; | ||
| declare const getShowcaseProjectAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getShowcaseProjects: (query?: ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectsResult>; | ||
| getShowcaseProjectById: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectByIdResult>; | ||
| getOtherShowcaseProjects: (query: OtherShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetOtherShowcaseProjectsResult>; | ||
| submitShowcaseProject: (body: SubmitShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<SubmitShowcaseProjectResult>; | ||
| toggleShowcaseUpvote: (body: ToggleShowcaseUpvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseUpvoteResult>; | ||
| toggleShowcaseDownvote: (body: ToggleShowcaseDownvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseDownvoteResult>; | ||
| deleteShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<{ | ||
| data: { | ||
| success: boolean; | ||
| }; | ||
| }>; | ||
| updateShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], body: UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>; | ||
| }; | ||
| //#endregion | ||
| export { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI }; | ||
| //# sourceMappingURL=showcaseProject.d.ts.map | ||
| import { n as ShowcaseProjectsQuery, r as getShowcaseProjectAPI, t as OtherShowcaseProjectsQuery } from "../showcaseProject-1zcpB4aW.js"; | ||
| export { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI }; |
@@ -1,13 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { GetCheckoutSessionBody, GetPricingBody } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/stripe.d.ts | ||
| declare const getStripeAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getPricing: (body?: GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>; | ||
| getSubscription: (body?: GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>; | ||
| cancelSubscription: (otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>; | ||
| }; | ||
| //#endregion | ||
| export { getStripeAPI }; | ||
| //# sourceMappingURL=stripe.d.ts.map | ||
| import { t as getStripeAPI } from "../stripe-vRfMjdAc.js"; | ||
| export { getStripeAPI }; |
@@ -1,14 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { AddTagBody, DeleteTagParams, GetTagsParams, UpdateTagBody, UpdateTagParams } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/tag.d.ts | ||
| declare const getTagAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| getTags: (filters?: GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>; | ||
| addTag: (tag: AddTagBody, otherOptions?: FetcherOptions) => Promise<AddTagResult>; | ||
| updateTag: (tagId: UpdateTagParams["tagId"], tag: UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>; | ||
| deleteTag: (tagId: DeleteTagParams["tagId"], otherOptions?: FetcherOptions) => Promise<DeleteTagResult>; | ||
| }; | ||
| //#endregion | ||
| export { getTagAPI }; | ||
| //# sourceMappingURL=tag.d.ts.map | ||
| import { t as getTagAPI } from "../tag-0oc2-9J5.js"; | ||
| export { getTagAPI }; |
@@ -1,22 +0,2 @@ | ||
| import { FetcherOptions } from "../fetcher.js"; | ||
| import { CreateUserBody, GetUserByEmailParams, GetUserByIdParams, GetUsersParams, UpdateUserBody, UserAPI } from "@intlayer/backend"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region src/getIntlayerAPI/user.d.ts | ||
| type GetUserByAccountParams = { | ||
| providerAccountId: string; | ||
| provider: string; | ||
| }; | ||
| declare const getUserAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => { | ||
| createUser: (user: CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>; | ||
| getUsers: (filters?: GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>; | ||
| getUserById: (userId: GetUserByIdParams["userId"], otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>; | ||
| getUserByAccount: (providerAccountId: GetUserByAccountParams["providerAccountId"], provider: GetUserByAccountParams["provider"], otherOptions?: FetcherOptions) => Promise<any>; | ||
| getUserByEmail: (email: GetUserByEmailParams["email"], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>; | ||
| updateUser: (user: UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>; | ||
| deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>; | ||
| getVerifyEmailStatusURL: (userId: string | UserAPI["id"]) => string; | ||
| }; | ||
| //#endregion | ||
| export { getUserAPI }; | ||
| //# sourceMappingURL=user.d.ts.map | ||
| import { t as getUserAPI } from "../user-BVi1Ho0Q.js"; | ||
| export { getUserAPI }; |
+17
-17
@@ -1,19 +0,19 @@ | ||
| import { fetchDistantDictionaries } from "./distantDictionary/fetchDistantDictionaries.js"; | ||
| import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.js"; | ||
| import { t as fetchDistantDictionaries } from "./fetchDistantDictionaries-CLQEr6NS.js"; | ||
| import { t as fetchDistantDictionary } from "./fetchDistantDictionary-C7esreMl.js"; | ||
| import { FetcherOptions, fetcher, fetcherOptions } from "./fetcher.js"; | ||
| import { AskDocQuestionBody, AskDocQuestionResult, AutocompleteBody, getAiAPI } from "./getIntlayerAPI/ai.js"; | ||
| import { AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, StartRecursiveAuditResult, getAuditAPI } from "./getIntlayerAPI/audit.js"; | ||
| import { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI } from "./getIntlayerAPI/bitbucket.js"; | ||
| import { getDictionaryAPI } from "./getIntlayerAPI/dictionary.js"; | ||
| import { getEditorAPI } from "./getIntlayerAPI/editor.js"; | ||
| import { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubListReposResult, GitHubRepository, getGithubAPI } from "./getIntlayerAPI/github.js"; | ||
| import { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI } from "./getIntlayerAPI/gitlab.js"; | ||
| import { getNewsletterAPI } from "./getIntlayerAPI/newsletter.js"; | ||
| import { getOAuthAPI } from "./getIntlayerAPI/oAuth.js"; | ||
| import { getOrganizationAPI } from "./getIntlayerAPI/organization.js"; | ||
| import { getProjectAPI } from "./getIntlayerAPI/project.js"; | ||
| import { getSearchAPI } from "./getIntlayerAPI/search.js"; | ||
| import { getStripeAPI } from "./getIntlayerAPI/stripe.js"; | ||
| import { getTagAPI } from "./getIntlayerAPI/tag.js"; | ||
| import { getUserAPI } from "./getIntlayerAPI/user.js"; | ||
| import { i as getAiAPI, n as AskDocQuestionResult, r as AutocompleteBody, t as AskDocQuestionBody } from "./ai-FbIMwui1.js"; | ||
| import { a as GetRecursiveAuditStatusResult, c as StartRecursiveAuditBody, i as GetRecursiveAuditStatusParams, l as StartRecursiveAuditResult, n as DiscoverUrlsParams, o as RecursiveAuditJobParams, r as DiscoverUrlsResult, s as ScanUrlBody, t as AuditEvent, u as getAuditAPI } from "./audit-DzTxbapP.js"; | ||
| import { a as BitbucketGetAuthUrlResult, c as BitbucketListReposResult, i as BitbucketCheckConfigResult, l as BitbucketRepository, n as BitbucketAuthCallbackResult, o as BitbucketGetConfigFileBody, r as BitbucketCheckConfigBody, s as BitbucketGetConfigFileResult, t as BitbucketAuthCallbackBody, u as getBitbucketAPI } from "./bitbucket-DeRx5IlR.js"; | ||
| import { t as getDictionaryAPI } from "./dictionary-W5LSPsxq.js"; | ||
| import { t as getEditorAPI } from "./editor-DTBh5ovU.js"; | ||
| import { a as GitHubGetAuthUrlResult, c as GitHubListReposResult, i as GitHubCheckConfigResult, l as GitHubRepository, n as GitHubAuthCallbackResult, o as GitHubGetConfigFileBody, r as GitHubCheckConfigBody, s as GitHubGetConfigFileResult, t as GitHubAuthCallbackBody, u as getGithubAPI } from "./github-D077Il7G.js"; | ||
| import { a as GitLabGetAuthUrlResult, c as GitLabListProjectsResult, i as GitLabCheckConfigResult, l as GitLabProject, n as GitLabAuthCallbackResult, o as GitLabGetConfigFileBody, r as GitLabCheckConfigBody, s as GitLabGetConfigFileResult, t as GitLabAuthCallbackBody, u as getGitlabAPI } from "./gitlab-BrWydMCh.js"; | ||
| import { t as getNewsletterAPI } from "./newsletter-Dg_6QDY_.js"; | ||
| import { t as getOAuthAPI } from "./oAuth-DfQmGzLO.js"; | ||
| import { t as getOrganizationAPI } from "./organization-CNkB8dnj.js"; | ||
| import { t as getProjectAPI } from "./project-DKLgh9Mz.js"; | ||
| import { t as getSearchAPI } from "./search-CVbo1OMK.js"; | ||
| import { t as getStripeAPI } from "./stripe-vRfMjdAc.js"; | ||
| import { t as getTagAPI } from "./tag-0oc2-9J5.js"; | ||
| import { t as getUserAPI } from "./user-BVi1Ho0Q.js"; | ||
| import { IntlayerAPI, getIntlayerAPI } from "./getIntlayerAPI/index.js"; | ||
@@ -20,0 +20,0 @@ import { IntlayerAPIProxy, getIntlayerAPIProxy } from "./proxy.js"; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"proxy.d.ts","names":[],"sources":["../../src/proxy.ts"],"mappings":";;;;;;;AAqDA;;;;;;cAAa,mBAAA,GACX,eAAA,GAAiB,cAAA,EACjB,cAAA,GAAiB,cAAA,KAChB,WAAA;AAAA,KAiGS,gBAAA,GAAmB,UAAA,QAAkB,mBAAA"} | ||
| {"version":3,"file":"proxy.d.ts","names":[],"sources":["../../src/proxy.ts"],"mappings":";;;;;;;;;;;;;cAqDa,mBAAA,GACX,eAAA,GAAiB,cAAA,EACjB,cAAA,GAAiB,cAAA,KAChB,WAAA;AAAA,KAiGS,gBAAA,GAAmB,UAAA,QAAkB,mBAAA"} |
+3
-3
| { | ||
| "name": "@intlayer/api", | ||
| "version": "8.4.0", | ||
| "version": "8.4.1", | ||
| "private": false, | ||
@@ -75,4 +75,4 @@ "description": "SDK for interacting with the Intlayer API, enabling content auditing, and managing organizations, projects, and users.", | ||
| "dependencies": { | ||
| "@intlayer/config": "8.4.0", | ||
| "@intlayer/types": "8.4.0", | ||
| "@intlayer/config": "8.4.1", | ||
| "@intlayer/types": "8.4.1", | ||
| "defu": "6.1.4" | ||
@@ -79,0 +79,0 @@ }, |
| var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));exports.__toESM=s; |
| {"version":3,"file":"index.cjs","names":["builtConfiguration","getOrganizationAPI","getProjectAPI","getUserAPI","getOAuthAPI","getDictionaryAPI","getStripeAPI","getAiAPI","getAuditAPI","getTagAPI","getSearchAPI","getEditorAPI","getNewsletterAPI","getGithubAPI","getGitlabAPI","getBitbucketAPI","getShowcaseProjectAPI"],"sources":["../../../src/getIntlayerAPI/index.ts"],"sourcesContent":["import builtConfiguration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport { defu } from 'defu';\nimport type { FetcherOptions } from '../fetcher';\nimport { getAiAPI } from './ai';\nimport { getAuditAPI } from './audit';\nimport { getBitbucketAPI } from './bitbucket';\nimport { getDictionaryAPI } from './dictionary';\nimport { getEditorAPI } from './editor';\nimport { getGithubAPI } from './github';\nimport { getGitlabAPI } from './gitlab';\nimport { getNewsletterAPI } from './newsletter';\nimport { getOAuthAPI } from './oAuth';\nimport { getOrganizationAPI } from './organization';\nimport { getProjectAPI } from './project';\nimport { getSearchAPI } from './search';\nimport { getShowcaseProjectAPI } from './showcaseProject';\nimport { getStripeAPI } from './stripe';\nimport { getTagAPI } from './tag';\nimport { getUserAPI } from './user';\n\ninterface IntlayerAPIReturn {\n organization: ReturnType<typeof getOrganizationAPI>;\n project: ReturnType<typeof getProjectAPI>;\n user: ReturnType<typeof getUserAPI>;\n oAuth: ReturnType<typeof getOAuthAPI>;\n dictionary: ReturnType<typeof getDictionaryAPI>;\n stripe: ReturnType<typeof getStripeAPI>;\n ai: ReturnType<typeof getAiAPI>;\n audit: ReturnType<typeof getAuditAPI>;\n tag: ReturnType<typeof getTagAPI>;\n search: ReturnType<typeof getSearchAPI>;\n editor: ReturnType<typeof getEditorAPI>;\n newsletter: ReturnType<typeof getNewsletterAPI>;\n github: ReturnType<typeof getGithubAPI>;\n gitlab: ReturnType<typeof getGitlabAPI>;\n bitbucket: ReturnType<typeof getBitbucketAPI>;\n showcaseProject: ReturnType<typeof getShowcaseProjectAPI>;\n}\n\nexport const getIntlayerAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPIReturn => {\n const resolvedConfig = defu(\n intlayerConfig ?? {},\n builtConfiguration\n ) as IntlayerConfig;\n\n return {\n organization: getOrganizationAPI(authAPIOptions, resolvedConfig),\n project: getProjectAPI(authAPIOptions, resolvedConfig),\n user: getUserAPI(authAPIOptions, resolvedConfig),\n oAuth: getOAuthAPI(resolvedConfig),\n dictionary: getDictionaryAPI(authAPIOptions, resolvedConfig),\n stripe: getStripeAPI(authAPIOptions, resolvedConfig),\n ai: getAiAPI(authAPIOptions, resolvedConfig),\n audit: getAuditAPI(authAPIOptions, resolvedConfig),\n tag: getTagAPI(authAPIOptions, resolvedConfig),\n search: getSearchAPI(authAPIOptions, resolvedConfig),\n editor: getEditorAPI(authAPIOptions, resolvedConfig),\n newsletter: getNewsletterAPI(authAPIOptions, resolvedConfig),\n github: getGithubAPI(authAPIOptions, resolvedConfig),\n gitlab: getGitlabAPI(authAPIOptions, resolvedConfig),\n bitbucket: getBitbucketAPI(authAPIOptions, resolvedConfig),\n showcaseProject: getShowcaseProjectAPI(authAPIOptions, resolvedConfig),\n };\n};\n\nexport type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;\n"],"mappings":"qnBAwCA,MAAa,GACX,EAAiC,EAAE,CACnC,IACsB,CACtB,IAAM,GAAA,EAAA,EAAA,MACJ,GAAkB,EAAE,CACpBA,EAAAA,QACD,CAED,MAAO,CACL,aAAcC,EAAAA,mBAAmB,EAAgB,EAAe,CAChE,QAASC,EAAAA,cAAc,EAAgB,EAAe,CACtD,KAAMC,EAAAA,WAAW,EAAgB,EAAe,CAChD,MAAOC,EAAAA,YAAY,EAAe,CAClC,WAAYC,EAAAA,iBAAiB,EAAgB,EAAe,CAC5D,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,GAAIC,EAAAA,SAAS,EAAgB,EAAe,CAC5C,MAAOC,EAAAA,YAAY,EAAgB,EAAe,CAClD,IAAKC,EAAAA,UAAU,EAAgB,EAAe,CAC9C,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,WAAYC,EAAAA,iBAAiB,EAAgB,EAAe,CAC5D,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,UAAWC,EAAAA,gBAAgB,EAAgB,EAAe,CAC1D,gBAAiBC,EAAAA,sBAAsB,EAAgB,EAAe,CACvE"} |
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| import { Dictionary } from "@intlayer/types/dictionary"; | ||
| import { DictionaryKeys } from "@intlayer/types/module_augmentation"; | ||
| //#region ../unmerged-dictionaries-entry/dist/types/index.d.ts | ||
| //#region src/index.d.ts | ||
| type UnmergedDictionaries = Record<DictionaryKeys, Dictionary[]>; | ||
| //#endregion | ||
| export { UnmergedDictionaries }; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","names":["IntlayerConfig","Dictionary","DictionaryKeys","UnmergedDictionaries","Record","GetUnmergedDictionaries","configuration","getUnmergedDictionaries"],"sources":["../../../../../../../unmerged-dictionaries-entry/dist/types/index.d.ts"],"mappings":";;;;;;KAKKG,oBAAAA,GAAuBC,MAAAA,CAAOF,cAAAA,EAAgBD,UAAAA"} |
| {"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"mappings":";;;;;;AAOA;cAAa,wBAAA,GACX,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"} |
| {"version":3,"file":"fetchDistantDictionary.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"mappings":";;;;;;AAOA;cAAa,sBAAA,GACX,aAAA,UACA,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"} |
| {"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/ai.ts"],"mappings":";;;;;KAuBY,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,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;uBAYP,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"} |
| {"version":3,"file":"audit.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":";;;;;KAcY,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,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;0BAmBL,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"} |
| {"version":3,"file":"bitbucket.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/bitbucket.ts"],"mappings":";;;;KAGY,mBAAA;EACV,IAAA;EACA,IAAA;EACA,SAAA;EACA,IAAA;EACA,UAAA;IACE,IAAA;IACA,IAAA;EAAA;EAEF,KAAA;IACE,IAAA;MACE,IAAA;IAAA;EAAA;EAGJ,SAAA;IACE,IAAA;IACA,IAAA;IACA,IAAA;EAAA;EAEF,KAAA;IACE,YAAA;IACA,QAAA;IACA,IAAA;EAAA;EAEF,UAAA;EACA,UAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;AAAA;AAAA,KAGU,2BAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,wBAAA;EACV,IAAA,EAAM,mBAAA;AAAA;AAAA,KAGI,wBAAA;EACV,KAAA;EACA,SAAA;EACA,QAAA;EACA,MAAA;AAAA;AAAA,KAGU,0BAAA;EACV,IAAA;IACE,SAAA;IACA,WAAA;EAAA;AAAA;AAAA,KAIQ,0BAAA;EACV,KAAA;EACA,SAAA;EACA,QAAA;EACA,MAAA;EACA,IAAA;AAAA;AAAA,KAGU,4BAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,eAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;oCAWK,YAAA,GACL,cAAA,KAAc,OAAA,CAAA,yBAAA;+BAgBhB,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,2BAAA;2CAiBP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,wBAAA;0DAmBI,SAAA,UACf,QAAA,UACD,MAAA,WACF,YAAA,GACA,cAAA,KAAc,OAAA,CAAA,0BAAA;oDAqBI,SAAA,UACf,QAAA,UACD,MAAA,WACF,IAAA,WACF,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,4BAAA;AAAA"} |
| {"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/dictionary.ts"],"mappings":";;;;;cAoBa,gBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;8BAWJ,qBAAA,EAAqB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,qBAAA;uCAgBmB,cAAA,KAAc,OAAA,CAAA,yBAAA;kDAc/C,cAAA,KAAc,OAAA,CAAA,oCAAA;iCAiBb,mBAAA,mBAAoC,OAAA,GACzC,kBAAA,aAA6B,YAAA,GACzB,cAAA,KAAc,OAAA,CAAA,mBAAA;mCA8Bd,oBAAA,kBAAoC,YAAA,GACpC,cAAA,KAAc,OAAA,CAAA,sBAAA;wBAftB,iBAAA,EAAiB,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,mBAAA;iCA+BhB,oBAAA,EAAoB,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,sBAAA;yBAiBxB,qBAAA,kBAAqC,YAAA,GAC3B,cAAA,KAAc,OAAA,CAAA,sBAAA;AAAA"} |
| {"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":";;;;;;cASa,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;mCA6BA,cAAA,KACb,OAAA,CAAQ,2BAAA;oCAhBK,cAAA,KACb,OAAA,CAAQ,sBAAA;0BA8BH,2BAAA,EAA2B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,6BAAA;AAAA"} |
| {"version":3,"file":"github.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/github.ts"],"mappings":";;;;KAGY,gBAAA;EACV,EAAA;EACA,IAAA;EACA,SAAA;EACA,KAAA;IACE,KAAA;IACA,EAAA;EAAA;EAEF,QAAA;EACA,cAAA;EACA,OAAA;AAAA;AAAA,KAGU,sBAAA;EACV,IAAA;AAAA;AAAA,KAGU,wBAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,qBAAA;EACV,IAAA,EAAM,gBAAA;AAAA;AAAA,KAGI,qBAAA;EACV,KAAA;EACA,KAAA;EACA,UAAA;EACA,MAAA;AAAA;AAAA,KAGU,uBAAA;EACV,IAAA;IACE,SAAA;EAAA;AAAA;AAAA,KAIQ,uBAAA;EACV,KAAA;EACA,KAAA;EACA,UAAA;EACA,MAAA;EACA,IAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;oCAWK,YAAA,GACL,cAAA,KAAc,OAAA,CAAA,sBAAA;+BAgBhB,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,wBAAA;2CAiBP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,qBAAA;0DAmBI,KAAA,UACnB,UAAA,UACK,MAAA,WACJ,YAAA,GACA,cAAA,KAAc,OAAA,CAAA,uBAAA;oDAqBI,KAAA,UACnB,UAAA,UACK,MAAA,WACJ,IAAA,WACF,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,yBAAA;AAAA"} |
| {"version":3,"file":"gitlab.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/gitlab.ts"],"mappings":";;;;KAGY,aAAA;EACV,EAAA;EACA,IAAA;EACA,mBAAA;EACA,OAAA;EACA,cAAA;EACA,UAAA;EACA,gBAAA;EACA,SAAA;IACE,EAAA;IACA,IAAA;IACA,IAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;EACA,WAAA;EACA,WAAA;AAAA;AAAA,KAGU,wBAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,wBAAA;EACV,IAAA,EAAM,aAAA;AAAA;AAAA,KAGI,qBAAA;EACV,KAAA;EACA,SAAA;EACA,MAAA;EACA,WAAA;AAAA;AAAA,KAGU,uBAAA;EACV,IAAA;IACE,SAAA;IACA,WAAA;EAAA;AAAA;AAAA,KAIQ,uBAAA;EACV,KAAA;EACA,SAAA;EACA,MAAA;EACA,IAAA;EACA,WAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;oCAYK,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,sBAAA;+BAkBhB,WAAA,UACO,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,wBAAA;uCAkBP,WAAA,WACD,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,wBAAA;0DAsBI,SAAA,UACf,MAAA,WACH,WAAA,WACM,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,uBAAA;oDA0BI,SAAA,UACf,MAAA,WACH,IAAA,WACF,WAAA,WACQ,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,yBAAA;AAAA"} |
| {"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/newsletter.ts"],"mappings":";;;;;cAQa,gBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;gCAYR,0BAAA,EAA0B,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,4BAAA;oCAkBtB,4BAAA,EAA4B,YAAA,GACpB,cAAA,KAAc,OAAA,CAAA,4BAAA;uCAgBmB,cAAA,KAAc,OAAA,CAAA,4BAAA;AAAA"} |
| {"version":3,"file":"oAuth.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/oAuth.ts"],"mappings":";;;;cAOa,WAAA,GAAe,cAAA,EAAgB,cAAA;wCAQQ,cAAA,KAAc,OAAA,CAAA,oBAAA;AAAA"} |
| {"version":3,"file":"organization.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/organization.ts"],"mappings":";;;;;cAqBa,kBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;+BAWJ,sBAAA,EAAsB,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,sBAAA;oCAkBZ,oBAAA,oBAAsC,YAAA,GACxC,cAAA,KAAc,OAAA,CAAA,qBAAA;kCAad,mBAAA,EAAmB,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,qBAAA;gCAyEtB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;qCAzDd,sBAAA,EAAsB,YAAA,GACtB,cAAA,KAAc,OAAA,CAAA,wBAAA;oCAiBtB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;0DAkBN,IAAA,EAChB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;sCAkCkB,cAAA,KAAc,OAAA,CAAA,wBAAA;uCAe5C,uBAAA,oBAAyC,YAAA,GAC3C,cAAA,KAAc,OAAA,CAAA,wBAAA;wCAeoB,cAAA,KAAc,OAAA,CAAA,0BAAA;AAAA"} |
| {"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"mappings":";;;;;cA6Ba,aAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;0BAWJ,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"} |
| {"version":3,"file":"search.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/search.ts"],"mappings":";;;;;cAOa,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;uBAYL,mBAAA,EAAmB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,mBAAA;AAAA"} |
| {"version":3,"file":"showcaseProject.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"mappings":";;;;;KAmBY,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,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;gCAON,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"} |
| {"version":3,"file":"stripe.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/stripe.ts"],"mappings":";;;;;cASa,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;sBAWP,cAAA,EAAc,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,gBAAA;2BAiBrB,sBAAA,EAAsB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,wBAAA;sCAgBkB,cAAA,KAAc,OAAA,CAAA,wBAAA;AAAA"} |
| {"version":3,"file":"tag.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/tag.ts"],"mappings":";;;;;cAca,SAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;sBAWJ,aAAA,EAAa,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,aAAA;gBAiBH,UAAA,EAAU,YAAA,GAAgB,cAAA,KAAc,OAAA,CAAA,YAAA;qBAgB1D,eAAA,WAAwB,GAAA,EAC1B,aAAA,EAAa,YAAA,GACJ,cAAA,KAAc,OAAA,CAAA,eAAA;qBAiBrB,eAAA,WAAwB,YAAA,GAEjB,cAAA,KAAc,OAAA,CAAA,eAAA;AAAA"} |
| {"version":3,"file":"user.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/user.ts"],"mappings":";;;;;KAgBK,sBAAA;EAA2B,iBAAA;EAA2B,QAAA;AAAA;AAAA,cAG9C,UAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;qBAuFR,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;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"} |
| import { ResponseData } from "../utils/responseData.js"; | ||
| import { IntlayerConfig } from "@intlayer/types/config"; | ||
| //#region ../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts | ||
| //#region src/controllers/configuration.controller.d.ts | ||
| type GetConfigurationResult = ResponseData<IntlayerConfig>; | ||
| /** | ||
| * Get the Intlayer configuration | ||
| */ | ||
| //#endregion | ||
| export { GetConfigurationResult }; | ||
| //# sourceMappingURL=configuration.controller.d.ts.map |
| {"version":3,"file":"configuration.controller.d.ts","names":["ResponseData","IntlayerConfig","FastifyReply","FastifyRequest","GetConfigurationResult","getConfiguration","Promise","_req","res"],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts"],"mappings":";;;;;KAKKI,sBAAAA,GAAyBJ,YAAAA,CAAaC,cAAAA"} |
| import { ResponseData } from "../utils/responseData.js"; | ||
| import { UnmergedDictionaries } from "../../../../@intlayer/unmerged-dictionaries-entry/dist/types/index.js"; | ||
| import { DictionaryStatus } from "@intlayer/chokidar/build"; | ||
| import { Dictionary } from "@intlayer/types/dictionary"; | ||
| //#region ../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts | ||
| //#region src/controllers/dictionary.controller.d.ts | ||
| type GetEditorDictionariesResult = ResponseData<UnmergedDictionaries>; | ||
| /** | ||
| * Get the Intlayer configuration | ||
| */ | ||
| type WriteContentDeclarationBody = { | ||
| dictionary: Dictionary; | ||
| }; | ||
| type WriteContentDeclarationResultData = { | ||
| status: DictionaryStatus; | ||
| path: string; | ||
| }; | ||
| type WriteContentDeclarationResult = ResponseData<WriteContentDeclarationResultData>; | ||
| /** | ||
| * Adds a new dictionary to the database. | ||
| */ | ||
| //#endregion | ||
| export { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult }; | ||
| //# sourceMappingURL=dictionary.controller.d.ts.map |
| {"version":3,"file":"dictionary.controller.d.ts","names":["ResponseData","FastifyReply","FastifyRequest","DictionaryStatus","Dictionary","UnmergedDictionaries","GetEditorDictionariesResult","getDictionaries","Promise","_req","res","WriteContentDeclarationBody","dictionary","WriteContentDeclarationResultData","status","path","WriteContentDeclarationResult","writeContentDeclaration","Body","req"],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts"],"mappings":";;;;;;;KAOKM,2BAAAA,GAA8BN,YAAAA,CAAaK,oBAAAA;;;;KAK3CM,2BAAAA;EACHC,UAAAA,EAAYR,UAAAA;AAAAA;AAAAA,KAETS,iCAAAA;EACHC,MAAAA,EAAQX,gBAAAA;EACRY,IAAAA;AAAAA;AAAAA,KAEGC,6BAAAA,GAAgChB,YAAAA,CAAaa,iCAAAA"} |
| import { GetConfigurationResult } from "./controllers/configuration.controller.js"; | ||
| import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "./controllers/dictionary.controller.js"; |
| //#region ../../intlayer-editor/server/dist/utils/httpStatusCodes.d.ts | ||
| //#region src/utils/httpStatusCodes.d.ts | ||
| /** | ||
| * Enum for HTTP response status codes. | ||
| * Contains all the possible HTTP response codes according to the standard. | ||
| * | ||
| * | ||
| * 1xx: Informational responses | ||
| * | ||
| * | ||
| * 100 - CONTINUE - The server has received the request headers and the client should proceed to send the request body. | ||
| * | ||
| * 101 - SWITCHING_PROTOCOLS - The requester has asked the server to switch protocols and the server has agreed to do so. | ||
| * | ||
| * 102 - PROCESSING - Used to return some response headers before final HTTP message. | ||
| * | ||
| * 103 - EARLY_HINTS - Early hints - part of optimization to improve page load time. | ||
| * | ||
| * | ||
| * 2xx: Successful responses | ||
| * | ||
| * | ||
| * 200 - OK - The request has succeeded. | ||
| * | ||
| * 201 - CREATED - The request has been fulfilled and has resulted in one or more new resources being created. | ||
| * | ||
| * 202 - ACCEPTED - The request has been accepted for processing, but the processing has not been completed. | ||
| * | ||
| * 203 - NON_AUTHORITATIVE_INFORMATION - The server successfully processed the request, but is returning information that may be from another source. | ||
| * | ||
| * 204 - NO_CONTENT - The server successfully processed the request and is not returning any content. | ||
| * | ||
| * 205 - RESET_CONTENT - The server successfully processed the request, but is not returning any content and requires that the requester reset the document view. | ||
| * | ||
| * 206 - PARTIAL_CONTENT - The server is delivering only part of the resource due to a range header sent by the client. | ||
| * | ||
| * 207 - MULTI_STATUS - Multi-status response providing status for multiple independent operations. | ||
| * | ||
| * 208 - ALREADY_REPORTED - The members of a DAV binding have already been enumerated in a preceding part of the request. | ||
| * | ||
| * 226 - IM_USED - The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance. | ||
| * | ||
| * | ||
| * 3xx: Redirection messages | ||
| * | ||
| * | ||
| * 300 - MULTIPLE_CHOICES - The request has more than one possible response. The user-agent or user should choose one of them. | ||
| * | ||
| * 301 - MOVED_PERMANENTLY - The URL of the requested resource has been changed permanently. | ||
| * | ||
| * 302 - FOUND - The requested resource is available at a different URI. | ||
| * | ||
| * 303 - SEE_OTHER - The response to the request can be found under another URI using a GET method. | ||
| * | ||
| * 304 - NOT_MODIFIED - Indicates that the resource has not been modified since the version specified by the request headers. | ||
| * | ||
| * 305 - USE_PROXY - The requested resource must be accessed through the proxy given by the Location field. | ||
| * | ||
| * 306 - SWITCH_PROXY - No longer used. Originally meant to direct the client to switch to a different proxy. | ||
| * | ||
| * 307 - TEMPORARY_REDIRECT - The requested resource resides temporarily under a different URI. | ||
| * | ||
| * 308 - PERMANENT_REDIRECT - The request should be repeated with another URI, but future requests should still use the original URI. | ||
| * | ||
| * | ||
| * 4xx: Client error responses | ||
| * | ||
| * | ||
| * 400 - BAD_REQUEST - The server cannot or will not process the request due to something perceived to be a client error. | ||
| * | ||
| * 401 - UNAUTHORIZED - The client must authenticate itself to get the requested response. | ||
| * | ||
| * 403 - FORBIDDEN - The client does not have access rights to the content. | ||
| * | ||
| * 404 - NOT_FOUND - The server can not find the requested resource. | ||
| * | ||
| * 405 - METHOD_NOT_ALLOWED - The request method is known by the server but is not supported by the target resource. | ||
| * | ||
| * 406 - NOT_ACCEPTABLE - This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request. | ||
| * | ||
| * 407 - PROXY_AUTHENTICATION_REQUIRED - This is similar to 401 but authentication is needed to be done by a proxy. | ||
| * | ||
| * 408 - REQUEST_TIMEOUT - This response is sent on an idle connection by some servers, even without any previous request by the client. | ||
| * | ||
| * 409 - CONFLICT - This response is sent when a request conflicts with the current state of the server. | ||
| * | ||
| * 410 - GONE - This response is sent when the requested resource is no longer available and will not be available again. | ||
| * | ||
| * 411 - LENGTH_REQUIRED - The request did not specify the length of its content, which is required by the requested resource. | ||
| * | ||
| * 412 - PRECONDITION_FAILED - The server does not meet one of the preconditions that the requester put on the request. | ||
| * | ||
| * 413 - PAYLOAD_TOO_LARGE - The request is larger than the server is willing or able to process. | ||
| * | ||
| * 414 - URI_TOO_LONG - The URI requested by the client is longer than the server is willing to interpret. | ||
| * | ||
| * 415 - UNSUPPORTED_MEDIA_TYPE - The media format of the requested data is not supported by the server. | ||
| * | ||
| * 416 - RANGE_NOT_SATISFIABLE - The range specified by the Range header field in the request can't be fulfilled. | ||
| * | ||
| * 417 - EXPECTATION_FAILED - The expectation indicated by the Expect request header field can't be met by the server. | ||
| * | ||
| * 418 - IM_A_TEAPOT - The server refuses the attempt to brew coffee with a teapot. | ||
| * | ||
| * 421 - MISDIRECTED_REQUEST - The request was directed at a server that is not able to produce a response. | ||
| * | ||
| * 422 - UNPROCESSABLE_ENTITY - The request was well-formed but was unable to be followed due to semantic errors. | ||
| * | ||
| * 423 - LOCKED - The resource that is being accessed is locked. | ||
| * | ||
| * 424 - FAILED_DEPENDENCY - The request failed due to failure of a previous request. | ||
| * | ||
| * 425 - TOO_EARLY - Indicates that the server is unwilling to risk processing a request that might be replayed. | ||
| * | ||
| * 426 - UPGRADE_REQUIRED - The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol. | ||
| * | ||
| * 428 - PRECONDITION_REQUIRED - The origin server requires the request to be conditional. | ||
| * | ||
| * 429 - TOO_MANY_REQUESTS - The user has sent too many requests in a given amount of time. | ||
| * | ||
| * 431 - REQUEST_HEADER_FIELDS_TOO_LARGE - The server is unwilling to process the request because its header fields are too large. | ||
| * | ||
| * 451 - UNAVAILABLE_FOR_LEGAL_REASONS - The user-agent requested a resource that cannot legally be provided, such as a censored resource. | ||
| * | ||
| * | ||
| * 5xx: Server error responses | ||
| * | ||
| * | ||
| * 500 - INTERNAL_SERVER_ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request. | ||
| * | ||
| * 501 - NOT_IMPLEMENTED - The server does not support the functionality required to fulfill the request. | ||
| * | ||
| * 502 - BAD_GATEWAY - The server, while acting as a gateway or proxy, received an invalid response from the upstream server. | ||
| * | ||
| * 503 - SERVICE_UNAVAILABLE - The server is currently unavailable (because it is overloaded or down for maintenance). | ||
| * | ||
| * 504 - GATEWAY_TIMEOUT - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. | ||
| * | ||
| * 505 - HTTP_VERSION_NOT_SUPPORTED - The server does not support the HTTP protocol version used in the request. | ||
| * | ||
| * 506 - VARIANT_ALSO_NEGOTIATES - The server has an internal configuration error, such as a misconfigured gateway. | ||
| * | ||
| * 507 - INSUFFICIENT_STORAGE - The server is unable to store the representation needed to complete the request. | ||
| * | ||
| * 508 - LOOP_DETECTED - The server detected an infinite loop while processing a request. | ||
| */ | ||
| declare enum HttpStatusCodes { | ||
| /** | ||
| * The server has received the request headers and the client should proceed to send the request body. | ||
| */ | ||
| CONTINUE_100 = 100, | ||
| /** | ||
| * The requester has asked the server to switch protocols and the server has agreed to do so. | ||
| */ | ||
| SWITCHING_PROTOCOLS_101 = 101, | ||
| /** | ||
| * Used to return some response headers before final HTTP message. | ||
| */ | ||
| PROCESSING_102 = 102, | ||
| // WebDAV | ||
| /** | ||
| * Early hints - part of optimization to improve page load time. | ||
| */ | ||
| EARLY_HINTS_103 = 103, | ||
| /** | ||
| * The request has succeeded. | ||
| */ | ||
| OK_200 = 200, | ||
| /** | ||
| * The request has been fulfilled and has resulted in one or more new resources being created. | ||
| */ | ||
| CREATED_201 = 201, | ||
| /** | ||
| * The request has been accepted for processing, but the processing has not been completed. | ||
| */ | ||
| ACCEPTED_202 = 202, | ||
| /** | ||
| * The server successfully processed the request, but is returning information that may be from another source. | ||
| */ | ||
| NON_AUTHORITATIVE_INFORMATION_203 = 203, | ||
| /** | ||
| * The server successfully processed the request and is not returning any content. | ||
| */ | ||
| NO_CONTENT_204 = 204, | ||
| /** | ||
| * The server successfully processed the request, but is not returning any content and requires that the requester reset the document view. | ||
| */ | ||
| RESET_CONTENT_205 = 205, | ||
| /** | ||
| * The server is delivering only part of the resource due to a range header sent by the client. | ||
| */ | ||
| PARTIAL_CONTENT_206 = 206, | ||
| /** | ||
| * Multi-status response providing status for multiple independent operations. | ||
| */ | ||
| MULTI_STATUS_207 = 207, | ||
| // WebDAV | ||
| /** | ||
| * The members of a DAV binding have already been enumerated in a preceding part of the request. | ||
| */ | ||
| ALREADY_REPORTED_208 = 208, | ||
| // WebDAV | ||
| /** | ||
| * The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance. | ||
| */ | ||
| IM_USED_226 = 226, | ||
| /** | ||
| * The request has more than one possible response. The user-agent or user should choose one of them. | ||
| */ | ||
| MULTIPLE_CHOICES_300 = 300, | ||
| /** | ||
| * The URL of the requested resource has been changed permanently. | ||
| */ | ||
| MOVED_PERMANENTLY_301 = 301, | ||
| /** | ||
| * The requested resource is available at a different URI. | ||
| */ | ||
| FOUND_302 = 302, | ||
| /** | ||
| * The response to the request can be found under another URI using a GET method. | ||
| */ | ||
| SEE_OTHER_303 = 303, | ||
| /** | ||
| * Indicates that the resource has not been modified since the version specified by the request headers. | ||
| */ | ||
| NOT_MODIFIED_304 = 304, | ||
| /** | ||
| * The requested resource must be accessed through the proxy given by the Location field. | ||
| */ | ||
| USE_PROXY_305 = 305, | ||
| /** | ||
| * No longer used. Originally meant to direct the client to switch to a different proxy. | ||
| */ | ||
| SWITCH_PROXY_306 = 306, | ||
| /** | ||
| * The requested resource resides temporarily under a different URI. | ||
| */ | ||
| TEMPORARY_REDIRECT_307 = 307, | ||
| /** | ||
| * The request should be repeated with another URI, but future requests should still use the original URI. | ||
| */ | ||
| PERMANENT_REDIRECT_308 = 308, | ||
| /** | ||
| * The server cannot or will not process the request due to something perceived to be a client error. | ||
| */ | ||
| BAD_REQUEST_400 = 400, | ||
| /** | ||
| * The client must authenticate itself to get the requested response. | ||
| */ | ||
| UNAUTHORIZED_401 = 401, | ||
| /** | ||
| * The client does not have access rights to the content. | ||
| */ | ||
| FORBIDDEN_403 = 403, | ||
| /** | ||
| * The server can not find the requested resource. | ||
| */ | ||
| NOT_FOUND_404 = 404, | ||
| /** | ||
| * The request method is known by the server but is not supported by the target resource. | ||
| */ | ||
| METHOD_NOT_ALLOWED_405 = 405, | ||
| /** | ||
| * This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request. | ||
| */ | ||
| NOT_ACCEPTABLE_406 = 406, | ||
| /** | ||
| * This is similar to 401 but authentication is needed to be done by a proxy. | ||
| */ | ||
| PROXY_AUTHENTICATION_REQUIRED_407 = 407, | ||
| /** | ||
| * This response is sent on an idle connection by some servers, even without any previous request by the client. | ||
| */ | ||
| REQUEST_TIMEOUT_408 = 408, | ||
| /** | ||
| * This response is sent when a request conflicts with the current state of the server. | ||
| */ | ||
| CONFLICT_409 = 409, | ||
| /** | ||
| * This response is sent when the requested resource is no longer available and will not be available again. | ||
| */ | ||
| GONE_410 = 410, | ||
| /** | ||
| * The request did not specify the length of its content, which is required by the requested resource. | ||
| */ | ||
| LENGTH_REQUIRED_411 = 411, | ||
| /** | ||
| * The server does not meet one of the preconditions that the requester put on the request. | ||
| */ | ||
| PRECONDITION_FAILED_412 = 412, | ||
| /** | ||
| * The request is larger than the server is willing or able to process. | ||
| */ | ||
| PAYLOAD_TOO_LARGE_413 = 413, | ||
| /** | ||
| * The URI requested by the client is longer than the server is willing to interpret. | ||
| */ | ||
| URI_TOO_LONG_414 = 414, | ||
| /** | ||
| * The media format of the requested data is not supported by the server. | ||
| */ | ||
| UNSUPPORTED_MEDIA_TYPE_415 = 415, | ||
| /** | ||
| * The range specified by the Range header field in the request can't be fulfilled. | ||
| */ | ||
| RANGE_NOT_SATISFIABLE_416 = 416, | ||
| /** | ||
| * The expectation indicated by the Expect request header field can't be met by the server. | ||
| */ | ||
| EXPECTATION_FAILED_417 = 417, | ||
| /** | ||
| * The server refuses the attempt to brew coffee with a teapot. | ||
| */ | ||
| IM_A_TEAPOT_418 = 418, | ||
| // Easter egg from the HTCPCP/1.0 protocol. | ||
| /** | ||
| * The request was directed at a server that is not able to produce a response. | ||
| */ | ||
| MISDIRECTED_REQUEST_421 = 421, | ||
| /** | ||
| * The request was well-formed but was unable to be followed due to semantic errors. | ||
| */ | ||
| UNPROCESSABLE_ENTITY_422 = 422, | ||
| // WebDAV | ||
| /** | ||
| * The resource that is being accessed is locked. | ||
| */ | ||
| LOCKED_423 = 423, | ||
| // WebDAV | ||
| /** | ||
| * The request failed due to failure of a previous request. | ||
| */ | ||
| FAILED_DEPENDENCY_424 = 424, | ||
| // WebDAV | ||
| /** | ||
| * Indicates that the server is unwilling to risk processing a request that might be replayed. | ||
| */ | ||
| TOO_EARLY_425 = 425, | ||
| /** | ||
| * The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol. | ||
| */ | ||
| UPGRADE_REQUIRED_426 = 426, | ||
| /** | ||
| * The origin server requires the request to be conditional. | ||
| */ | ||
| PRECONDITION_REQUIRED_428 = 428, | ||
| /** | ||
| * The user has sent too many requests in a given amount of time. | ||
| */ | ||
| TOO_MANY_REQUESTS_429 = 429, | ||
| /** | ||
| * The server is unwilling to process the request because its header fields are too large. | ||
| */ | ||
| REQUEST_HEADER_FIELDS_TOO_LARGE_431 = 431, | ||
| /** | ||
| * The user-agent requested a resource that cannot legally be provided, such as a censored resource. | ||
| */ | ||
| UNAVAILABLE_FOR_LEGAL_REASONS_451 = 451, | ||
| /** | ||
| * The server encountered an unexpected condition that prevented it from fulfilling the request. | ||
| */ | ||
| INTERNAL_SERVER_ERROR_500 = 500, | ||
| /** | ||
| * The server does not support the functionality required to fulfill the request. | ||
| */ | ||
| NOT_IMPLEMENTED_501 = 501, | ||
| /** | ||
| * The server, while acting as a gateway or proxy, received an invalid response from the upstream server. | ||
| */ | ||
| BAD_GATEWAY_502 = 502, | ||
| /** | ||
| * The server is currently unavailable (because it is overloaded or down for maintenance). | ||
| */ | ||
| SERVICE_UNAVAILABLE_503 = 503, | ||
| /** | ||
| * The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. | ||
| */ | ||
| GATEWAY_TIMEOUT_504 = 504, | ||
| /** | ||
| * The server does not support the HTTP protocol version used in the request. | ||
| */ | ||
| HTTP_VERSION_NOT_SUPPORTED_505 = 505, | ||
| /** | ||
| * The server has an internal configuration error, such as a misconfigured gateway. | ||
| */ | ||
| VARIANT_ALSO_NEGOTIATES_506 = 506, | ||
| /** | ||
| * The server is unable to store the representation needed to complete the request. | ||
| */ | ||
| INSUFFICIENT_STORAGE_507 = 507, | ||
| // WebDAV | ||
| /** | ||
| * The server detected an infinite loop while processing a request. | ||
| */ | ||
| LOOP_DETECTED_508 = 508, | ||
| // WebDAV | ||
| /** | ||
| * Further extensions to the request are required for the server to fulfill it. | ||
| */ | ||
| NOT_EXTENDED_510 = 510, | ||
| /** | ||
| * The client needs to authenticate to gain network access. | ||
| */ | ||
| NETWORK_AUTHENTICATION_REQUIRED_511 = 511 | ||
| } //#endregion | ||
| //#endregion | ||
| export { HttpStatusCodes }; | ||
| //# sourceMappingURL=httpStatusCodes.d.ts.map |
| {"version":3,"file":"httpStatusCodes.d.ts","names":["HttpStatusCodes","CONTINUE_100","SWITCHING_PROTOCOLS_101","PROCESSING_102","EARLY_HINTS_103","OK_200","CREATED_201","ACCEPTED_202","NON_AUTHORITATIVE_INFORMATION_203","NO_CONTENT_204","RESET_CONTENT_205","PARTIAL_CONTENT_206","MULTI_STATUS_207","ALREADY_REPORTED_208","IM_USED_226","MULTIPLE_CHOICES_300","MOVED_PERMANENTLY_301","FOUND_302","SEE_OTHER_303","NOT_MODIFIED_304","USE_PROXY_305","SWITCH_PROXY_306","TEMPORARY_REDIRECT_307","PERMANENT_REDIRECT_308","BAD_REQUEST_400","UNAUTHORIZED_401","FORBIDDEN_403","NOT_FOUND_404","METHOD_NOT_ALLOWED_405","NOT_ACCEPTABLE_406","PROXY_AUTHENTICATION_REQUIRED_407","REQUEST_TIMEOUT_408","CONFLICT_409","GONE_410","LENGTH_REQUIRED_411","PRECONDITION_FAILED_412","PAYLOAD_TOO_LARGE_413","URI_TOO_LONG_414","UNSUPPORTED_MEDIA_TYPE_415","RANGE_NOT_SATISFIABLE_416","EXPECTATION_FAILED_417","IM_A_TEAPOT_418","MISDIRECTED_REQUEST_421","UNPROCESSABLE_ENTITY_422","LOCKED_423","FAILED_DEPENDENCY_424","TOO_EARLY_425","UPGRADE_REQUIRED_426","PRECONDITION_REQUIRED_428","TOO_MANY_REQUESTS_429","REQUEST_HEADER_FIELDS_TOO_LARGE_431","UNAVAILABLE_FOR_LEGAL_REASONS_451","INTERNAL_SERVER_ERROR_500","NOT_IMPLEMENTED_501","BAD_GATEWAY_502","SERVICE_UNAVAILABLE_503","GATEWAY_TIMEOUT_504","HTTP_VERSION_NOT_SUPPORTED_505","VARIANT_ALSO_NEGOTIATES_506","INSUFFICIENT_STORAGE_507","LOOP_DETECTED_508","NOT_EXTENDED_510","NETWORK_AUTHENTICATION_REQUIRED_511"],"sources":["../../../../../../../../intlayer-editor/server/dist/utils/httpStatusCodes.d.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiJaA,eAAAA;;;;EAIXC,YAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,cAAAA;EAAAA;;;;EAKAC,eAAAA;;;;EAIAC,MAAAA;;;;EAIAC,WAAAA;;;;EAIAC,YAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,cAAAA;;;;EAIAC,iBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,gBAAAA;EAAAA;;;;EAKAC,oBAAAA;EAAAA;;;;EAKAC,WAAAA;;;;EAIAC,oBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,SAAAA;;;;EAIAC,aAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,aAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,eAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,aAAAA;;;;EAIAC,aAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,kBAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,YAAAA;;;;EAIAC,QAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,0BAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,eAAAA;EAAAA;;;;EAKAC,uBAAAA;;;;EAIAC,wBAAAA;EAAAA;;;;EAKAC,UAAAA;EAAAA;;;;EAKAC,qBAAAA;EAAAA;;;;EAKAC,aAAAA;;;;EAIAC,oBAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,mCAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,eAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,8BAAAA;;;;EAIAC,2BAAAA;;;;EAIAC,wBAAAA;EAAAA;;;;EAKAC,iBAAAA;EAAAA;;;;EAKAC,gBAAAA;;;;EAIAC,mCAAAA;AAAAA"} |
| import { HttpStatusCodes } from "./httpStatusCodes.js"; | ||
| //#region ../../intlayer-editor/server/dist/utils/responseData.d.ts | ||
| //#region src/utils/responseData.d.ts | ||
| type ErrorData = { | ||
| code: string; | ||
| title: string; | ||
| message: string; | ||
| } & object; | ||
| type ResponseData<T = null> = { | ||
| message?: string; | ||
| description?: string; | ||
| success: boolean; | ||
| status: HttpStatusCodes; | ||
| data: T | null; | ||
| error?: ErrorData | ErrorData[]; | ||
| }; | ||
| //#endregion | ||
| export { ResponseData }; | ||
| //# sourceMappingURL=responseData.d.ts.map |
| {"version":3,"file":"responseData.d.ts","names":["HttpStatusCodes","ErrorData","code","title","message","ResponseData","T","description","success","status","data","error","ValidResponseStatus","OK_200","CREATED_201","ACCEPTED_202","NON_AUTHORITATIVE_INFORMATION_203","NO_CONTENT_204","RESET_CONTENT_205","PARTIAL_CONTENT_206","MULTI_STATUS_207","ALREADY_REPORTED_208","IM_USED_226","SuccessResponseArgs","ErrorResponseArgs","formatResponse","PaginatedResponse","Omit","page","page_size","total_pages","total_items","SuccessPaginatedResponseArgs","pageSize","totalPages","totalItems","ErrorPaginatedResponseArgs","formatPaginatedResponse"],"sources":["../../../../../../../../intlayer-editor/server/dist/utils/responseData.d.ts"],"mappings":";;;;KAGKC,SAAAA;EACHC,IAAAA;EACAC,KAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,YAAAA;EACHD,OAAAA;EACAG,WAAAA;EACAC,OAAAA;EACAC,MAAAA,EAAQT,eAAAA;EACRU,IAAAA,EAAMJ,CAAAA;EACNK,KAAAA,GAAQV,SAAAA,GAAYA,SAAAA;AAAAA"} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 3 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
349093
1.01%156
4.7%1266
0.96%47
6.82%7
16.67%+ Added
+ Added
- Removed
- Removed
Updated
Updated