@intlayer/api 9.5.3 → 9.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/cjs/getIntlayerAPI/index.cjs +1 -1
- package/dist/cjs/index.cjs +4 -4
- package/dist/cjs/proxy.cjs +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs +1 -1
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/proxy.mjs +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +1 -3
- package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +0 -8
- package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +0 -1
- package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +0 -8
- package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +0 -1
- package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +0 -18
- package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +0 -1
- package/dist/types/intlayer-editor/server/dist/export.d.ts +0 -3
- package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +0 -408
- package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +0 -1
- package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts +0 -18
- package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://intlayer.org" rel="">
|
|
3
|
-
<img src="https://raw.githubusercontent.com/aymericzip/intlayer/main/docs/assets/cover.
|
|
3
|
+
<img src="https://raw.githubusercontent.com/aymericzip/intlayer/main/docs/assets/cover.webp" width="60%" alt="Intlayer Logo" />
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -49,10 +49,10 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
|
|
|
49
49
|
|
|
50
50
|
| Feature | Description |
|
|
51
51
|
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
52
|
-
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/frameworks.
|
|
52
|
+
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/frameworks.webp?raw=true" alt="Feature" width="700"> | **Cross-Frameworks Support**<br><br>Intlayer is compatible with all major frameworks and libraries, including Next.js, React, Vite, Vue.js, Nuxt, Preact, Express, and more. |
|
|
53
53
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/javascript_content_management.jpg?raw=true" alt="Feature" width="700"> | **JavaScript-Powered Content Management**<br><br>Harness the flexibility of JavaScript to define and manage your content efficiently. <br><br> - [Content declaration](https://intlayer.org/doc/concept/content) |
|
|
54
54
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/per_locale_content_declaration_file.png?raw=true" alt="Feature" width="700"> | **Per-Locale Content Declaration File**<br><br>Speed up your development by declaring your content once, before auto generation.<br><br> - [Per-Locale Content Declaration File](https://intlayer.org/doc/concept/per-locale-file) |
|
|
55
|
-
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/compiler.
|
|
55
|
+
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/compiler.webp?raw=true" alt="Feature" width="700"> | **Compiler**<br><br>The Intlayer Compiler extract automatically the content from the components and generate the dictionary files.<br><br> - [Compiler](https://intlayer.org/doc/compiler) |
|
|
56
56
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/autocompletion.png?raw=true" alt="Feature" width="700"> | **Type-Safe Environment**<br><br>Leverage TypeScript to ensure your content definitions and code are error-free, while also benefiting from IDE autocompletion.<br><br> - [TypeScript configuration](https://intlayer.org/doc/environment/vite-and-react#configure-typescript) |
|
|
57
57
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/config_file.png?raw=true" alt="Feature" width="700"> | **Simplified Setup**<br><br>Get up and running quickly with minimal configuration. Adjust settings for internationalization, routing, AI, build, and content handling with ease. <br><br> - [Explore Next.js integration](https://intlayer.org/doc/environment/nextjs) |
|
|
58
58
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/content_retrieval.png?raw=true" alt="Feature" width="700"> | **Simplified Content Retrieval**<br><br>No need to call your `t` function for each piece of content. Retrieve all your content directly using a single hook.<br><br> - [React integration](https://intlayer.org/doc/environment/create-react-app) |
|
|
@@ -60,12 +60,12 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
|
|
|
60
60
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/file_tree.png?raw=true" alt="Feature" width="700"> | **Organized Codebase**<br><br>Keep your codebase more organized: 1 component = 1 dictionary in the same folder. Translations close to their respective components, enhance maintainability and clarity. <br><br> - [How Intlayer works](https://intlayer.org/doc/concept/how-works-intlayer) |
|
|
61
61
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/url_routing.png?raw=true" alt="Feature" width="700"> | **Enhanced Routing**<br><br>Full support of app routing, adapting seamlessly to complex application structures, for Next.js, React, Vite, Vue.js, etc.<br><br> - [Explore Next.js integration](https://intlayer.org/doc/environment/nextjs) |
|
|
62
62
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/markdown.png?raw=true" alt="Feature" width="700"> | **Markdown Support**<br><br>Import and interpret, locale files and remote Markdown for multilingual content like privacy policies, documentation, etc. Interpret and make Markdown metadata accessible in your code.<br><br> - [Content files](https://intlayer.org/doc/concept/content/file) |
|
|
63
|
-
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/visual_editor.
|
|
64
|
-
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/bundle.
|
|
65
|
-
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/static_rendering.
|
|
63
|
+
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/visual_editor.webp?raw=true" alt="Feature" width="700"> | **Free Visual Editor & CMS**<br><br>A free visual editor and CMS are available for content writers, removing the need for a localization platform. Keep your content synchronized using Git, or externalize it totally or partially with the CMS.<br><br> - [Intlayer Editor](https://intlayer.org/doc/concept/editor) <br> - [Intlayer CMS](https://intlayer.org/doc/concept/cms) |
|
|
64
|
+
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/bundle.webp?raw=true" alt="Feature" width="700"> | **Tree-shakable Content**<br><br>Tree-shakable content, reducing the size of the final bundle. Loads content per component, excluding any unused content from your bundle. Supports lazy loading to enhance app loading efficiency. <br><br> - [App build optimization](https://intlayer.org/doc/concept/how-works-intlayer#app-build-optimization) |
|
|
65
|
+
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/static_rendering.webp?raw=true" alt="Feature" width="700"> | **Static Rendering**<br><br>Doesn't block Static Rendering. <br><br> - [Next.js integration](https://intlayer.org/doc/environment/nextjs) |
|
|
66
66
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/AI_translation.png?raw=true" alt="Feature" width="700"> | **AI-Powered Translation**<br><br>Transform your website into 231 languages with just one click using Intlayer's advanced AI-powered translation tools using your own AI provider / API key. <br><br> - [CI/CD integration](https://intlayer.org/doc/concept/ci-cd) <br> - [Intlayer CLI](https://intlayer.org/doc/concept/cli) <br> - [Auto fill](https://intlayer.org/doc/concept/auto-fill) |
|
|
67
67
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/mcp.png?raw=true" alt="Feature" width="700"> | **MCP Server Integration**<br><br>Provides an MCP (Model Context Protocol) server for IDE automation, enabling seamless content management and i18n workflows directly within your development environment. <br><br> - [MCP Server](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/mcp_server.md) |
|
|
68
|
-
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/vscode_extension.
|
|
68
|
+
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/vscode_extension.webp?raw=true" alt="Feature" width="700"> | **VSCode Extension**<br><br>Intlayer provides a VSCode extension to help you manage your content and translations, building your dictionaries, translating your content, and more. <br><br> - [VSCode Extension](https://intlayer.org/doc/vs-code-extension) |
|
|
69
69
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/interoperability.png?raw=true" alt="Feature" width="700"> | **Interoperability**<br><br>Allow interoperability with react-i18next, next-i18next, next-intl, react-intl, vue-i18n. <br><br> - [Intlayer and react-intl](https://intlayer.org/blog/intlayer-with-react-intl) <br> - [Intlayer and next-intl](https://intlayer.org/blog/intlayer-with-next-intl) <br> - [Intlayer and next-i18next](https://intlayer.org/blog/intlayer-with-next-i18next) <br> - [Intlayer and vue-i18n](https://intlayer.org/blog/intlayer-with-vue-i18n) <br> - [Intlayer compat adapters](https://intlayer.org/doc/compatibility) |
|
|
70
70
|
| <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/benchmark.png?raw=true" alt="Feature" width="700"> | **Performances & Benchmark**<br><br>Uses advanced tree-shaking and dynamic loading to boost performances and keep the solution as light as possible. <br><br> - [Performances & Benchmark](https://intlayer.org/doc/benchmark) |
|
|
71
71
|
|
|
@@ -262,7 +262,7 @@ Intlayer connects **developers**, **copywriters**, and **AI agents** in one work
|
|
|
262
262
|
- Feature flags
|
|
263
263
|
- Headless CMSs (e.g. Contentful, Strapi, Sanity)
|
|
264
264
|
|
|
265
|
-

|
|
266
266
|
|
|
267
267
|
## 🌐 Readme in other languages
|
|
268
268
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_getIntlayerAPI_oAuth = require('./oAuth.cjs');
|
|
3
|
+
const require_getIntlayerAPI_dictionary = require('./dictionary.cjs');
|
|
3
4
|
const require_getIntlayerAPI_ai = require('./ai.cjs');
|
|
4
5
|
const require_getIntlayerAPI_analytics = require('./analytics.cjs');
|
|
5
6
|
const require_getIntlayerAPI_asset = require('./asset.cjs');
|
|
6
7
|
const require_getIntlayerAPI_audit = require('./audit.cjs');
|
|
7
8
|
const require_getIntlayerAPI_bitbucket = require('./bitbucket.cjs');
|
|
8
|
-
const require_getIntlayerAPI_dictionary = require('./dictionary.cjs');
|
|
9
9
|
const require_getIntlayerAPI_editor = require('./editor.cjs');
|
|
10
10
|
const require_getIntlayerAPI_environment = require('./environment.cjs');
|
|
11
11
|
const require_getIntlayerAPI_github = require('./github.cjs');
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,12 +3,14 @@ const require_fetcher = require('./fetcher.cjs');
|
|
|
3
3
|
const require_getIntlayerAPI_oAuth = require('./getIntlayerAPI/oAuth.cjs');
|
|
4
4
|
const require_cms_createAuthManager = require('./cms/createAuthManager.cjs');
|
|
5
5
|
const require_cms_createIntlayerCMS = require('./cms/createIntlayerCMS.cjs');
|
|
6
|
+
const require_getIntlayerAPI_dictionary = require('./getIntlayerAPI/dictionary.cjs');
|
|
7
|
+
const require_distantDictionary_fetchDistantDictionaries = require('./distantDictionary/fetchDistantDictionaries.cjs');
|
|
8
|
+
const require_distantDictionary_fetchDistantDictionary = require('./distantDictionary/fetchDistantDictionary.cjs');
|
|
6
9
|
const require_getIntlayerAPI_ai = require('./getIntlayerAPI/ai.cjs');
|
|
7
10
|
const require_getIntlayerAPI_analytics = require('./getIntlayerAPI/analytics.cjs');
|
|
8
11
|
const require_getIntlayerAPI_asset = require('./getIntlayerAPI/asset.cjs');
|
|
9
12
|
const require_getIntlayerAPI_audit = require('./getIntlayerAPI/audit.cjs');
|
|
10
13
|
const require_getIntlayerAPI_bitbucket = require('./getIntlayerAPI/bitbucket.cjs');
|
|
11
|
-
const require_getIntlayerAPI_dictionary = require('./getIntlayerAPI/dictionary.cjs');
|
|
12
14
|
const require_getIntlayerAPI_editor = require('./getIntlayerAPI/editor.cjs');
|
|
13
15
|
const require_getIntlayerAPI_environment = require('./getIntlayerAPI/environment.cjs');
|
|
14
16
|
const require_getIntlayerAPI_github = require('./getIntlayerAPI/github.cjs');
|
|
@@ -24,10 +26,8 @@ const require_getIntlayerAPI_stripe = require('./getIntlayerAPI/stripe.cjs');
|
|
|
24
26
|
const require_getIntlayerAPI_tag = require('./getIntlayerAPI/tag.cjs');
|
|
25
27
|
const require_getIntlayerAPI_translate = require('./getIntlayerAPI/translate.cjs');
|
|
26
28
|
const require_getIntlayerAPI_user = require('./getIntlayerAPI/user.cjs');
|
|
27
|
-
const require_proxy = require('./proxy.cjs');
|
|
28
|
-
const require_distantDictionary_fetchDistantDictionaries = require('./distantDictionary/fetchDistantDictionaries.cjs');
|
|
29
|
-
const require_distantDictionary_fetchDistantDictionary = require('./distantDictionary/fetchDistantDictionary.cjs');
|
|
30
29
|
const require_getIntlayerAPI_index = require('./getIntlayerAPI/index.cjs');
|
|
30
|
+
const require_proxy = require('./proxy.cjs');
|
|
31
31
|
|
|
32
32
|
exports.FetcherError = require_fetcher.FetcherError;
|
|
33
33
|
exports.aiEndpoint = require_getIntlayerAPI_ai.aiEndpoint;
|
package/dist/cjs/proxy.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_getIntlayerAPI_oAuth = require('./getIntlayerAPI/oAuth.cjs');
|
|
3
3
|
const require_cms_createIntlayerCMS = require('./cms/createIntlayerCMS.cjs');
|
|
4
|
+
const require_getIntlayerAPI_dictionary = require('./getIntlayerAPI/dictionary.cjs');
|
|
4
5
|
const require_getIntlayerAPI_ai = require('./getIntlayerAPI/ai.cjs');
|
|
5
6
|
const require_getIntlayerAPI_analytics = require('./getIntlayerAPI/analytics.cjs');
|
|
6
7
|
const require_getIntlayerAPI_asset = require('./getIntlayerAPI/asset.cjs');
|
|
7
8
|
const require_getIntlayerAPI_audit = require('./getIntlayerAPI/audit.cjs');
|
|
8
9
|
const require_getIntlayerAPI_bitbucket = require('./getIntlayerAPI/bitbucket.cjs');
|
|
9
|
-
const require_getIntlayerAPI_dictionary = require('./getIntlayerAPI/dictionary.cjs');
|
|
10
10
|
const require_getIntlayerAPI_editor = require('./getIntlayerAPI/editor.cjs');
|
|
11
11
|
const require_getIntlayerAPI_environment = require('./getIntlayerAPI/environment.cjs');
|
|
12
12
|
const require_getIntlayerAPI_github = require('./getIntlayerAPI/github.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getOAuthAPI } from "./oAuth.mjs";
|
|
2
|
+
import { getDictionaryAPI } from "./dictionary.mjs";
|
|
2
3
|
import { getAiAPI } from "./ai.mjs";
|
|
3
4
|
import { getAnalyticsAPI } from "./analytics.mjs";
|
|
4
5
|
import { getAssetAPI } from "./asset.mjs";
|
|
5
6
|
import { getAuditAPI } from "./audit.mjs";
|
|
6
7
|
import { getBitbucketAPI } from "./bitbucket.mjs";
|
|
7
|
-
import { getDictionaryAPI } from "./dictionary.mjs";
|
|
8
8
|
import { getEditorAPI } from "./editor.mjs";
|
|
9
9
|
import { getEnvironmentAPI } from "./environment.mjs";
|
|
10
10
|
import { getGithubAPI } from "./github.mjs";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2,12 +2,14 @@ import { FetcherError, fetcher, fetcherOptions } from "./fetcher.mjs";
|
|
|
2
2
|
import { getOAuthAPI } from "./getIntlayerAPI/oAuth.mjs";
|
|
3
3
|
import { createAuthManager } from "./cms/createAuthManager.mjs";
|
|
4
4
|
import { createEndpoint, createIntlayerCMS } from "./cms/createIntlayerCMS.mjs";
|
|
5
|
+
import { dictionaryEndpoint, getDictionaryAPI } from "./getIntlayerAPI/dictionary.mjs";
|
|
6
|
+
import { fetchDistantDictionaries } from "./distantDictionary/fetchDistantDictionaries.mjs";
|
|
7
|
+
import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.mjs";
|
|
5
8
|
import { aiEndpoint, getAiAPI } from "./getIntlayerAPI/ai.mjs";
|
|
6
9
|
import { analyticsEndpoint, getAnalyticsAPI } from "./getIntlayerAPI/analytics.mjs";
|
|
7
10
|
import { assetEndpoint, getAssetAPI } from "./getIntlayerAPI/asset.mjs";
|
|
8
11
|
import { auditEndpoint, getAuditAPI } from "./getIntlayerAPI/audit.mjs";
|
|
9
12
|
import { bitbucketEndpoint, getBitbucketAPI } from "./getIntlayerAPI/bitbucket.mjs";
|
|
10
|
-
import { dictionaryEndpoint, getDictionaryAPI } from "./getIntlayerAPI/dictionary.mjs";
|
|
11
13
|
import { editorEndpoint, getEditorAPI } from "./getIntlayerAPI/editor.mjs";
|
|
12
14
|
import { environmentEndpoint, getEnvironmentAPI } from "./getIntlayerAPI/environment.mjs";
|
|
13
15
|
import { getGithubAPI, githubEndpoint } from "./getIntlayerAPI/github.mjs";
|
|
@@ -23,9 +25,7 @@ import { getStripeAPI, stripeEndpoint } from "./getIntlayerAPI/stripe.mjs";
|
|
|
23
25
|
import { getTagAPI, tagEndpoint } from "./getIntlayerAPI/tag.mjs";
|
|
24
26
|
import { getTranslateAPI, translateEndpoint } from "./getIntlayerAPI/translate.mjs";
|
|
25
27
|
import { getUserAPI, userEndpoint } from "./getIntlayerAPI/user.mjs";
|
|
26
|
-
import { getIntlayerAPIProxy } from "./proxy.mjs";
|
|
27
|
-
import { fetchDistantDictionaries } from "./distantDictionary/fetchDistantDictionaries.mjs";
|
|
28
|
-
import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.mjs";
|
|
29
28
|
import { getIntlayerAPI } from "./getIntlayerAPI/index.mjs";
|
|
29
|
+
import { getIntlayerAPIProxy } from "./proxy.mjs";
|
|
30
30
|
|
|
31
31
|
export { FetcherError, aiEndpoint, analyticsEndpoint, assetEndpoint, auditEndpoint, bitbucketEndpoint, createAuthManager, createEndpoint, createIntlayerCMS, dictionaryEndpoint, editorEndpoint, environmentEndpoint, fetchDistantDictionaries, fetchDistantDictionary, fetcher, fetcherOptions, getAiAPI, getAnalyticsAPI, getAssetAPI, getAuditAPI, getBitbucketAPI, getDictionaryAPI, getEditorAPI, getEnvironmentAPI, getGithubAPI, getGitlabAPI, getIntlayerAPI, getIntlayerAPIProxy, getNewsletterAPI, getOAuthAPI, getOrganizationAPI, getProjectAPI, getReviewerAPI, getSearchAPI, getShowcaseProjectAPI, getStatusAPI, getStripeAPI, getTagAPI, getTranslateAPI, getUserAPI, githubEndpoint, gitlabEndpoint, newsletterEndpoint, organizationEndpoint, projectEndpoint, reviewerEndpoint, searchEndpoint, showcaseProjectEndpoint, statusEndpoint, stripeEndpoint, tagEndpoint, translateEndpoint, userEndpoint };
|
package/dist/esm/proxy.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getOAuthAPI } from "./getIntlayerAPI/oAuth.mjs";
|
|
2
2
|
import { createIntlayerCMS } from "./cms/createIntlayerCMS.mjs";
|
|
3
|
+
import { getDictionaryAPI } from "./getIntlayerAPI/dictionary.mjs";
|
|
3
4
|
import { getAiAPI } from "./getIntlayerAPI/ai.mjs";
|
|
4
5
|
import { getAnalyticsAPI } from "./getIntlayerAPI/analytics.mjs";
|
|
5
6
|
import { getAssetAPI } from "./getIntlayerAPI/asset.mjs";
|
|
6
7
|
import { getAuditAPI } from "./getIntlayerAPI/audit.mjs";
|
|
7
8
|
import { getBitbucketAPI } from "./getIntlayerAPI/bitbucket.mjs";
|
|
8
|
-
import { getDictionaryAPI } from "./getIntlayerAPI/dictionary.mjs";
|
|
9
9
|
import { getEditorAPI } from "./getIntlayerAPI/editor.mjs";
|
|
10
10
|
import { getEnvironmentAPI } from "./getIntlayerAPI/environment.mjs";
|
|
11
11
|
import { getGithubAPI } from "./getIntlayerAPI/github.mjs";
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
-
import { GetConfigurationResult } from "../intlayer-editor/server/dist/controllers/configuration.controller.js";
|
|
4
|
-
import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "../intlayer-editor/server/dist/controllers/dictionary.controller.js";
|
|
5
|
-
import "../intlayer-editor/server/dist/export.js";
|
|
6
3
|
import "../index.js";
|
|
7
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
|
+
import { GetConfigurationResult, GetEditorDictionariesResult, WriteContentDeclarationBody } from "intlayer-editor";
|
|
8
6
|
//#region src/getIntlayerAPI/editor.d.ts
|
|
9
7
|
export declare const getEditorAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
10
8
|
getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":";;;;;;qBAWa,eAAY,iBACP,gBAAc,iBACb;EAyBD,kBAAA,eAAA,mBACb,QAAQ;EAhBK,mBAAA,eAAA,mBACb,QAAQ;EA8BH,kBAAA,MAAA,6BAA2B,eACnB,mBAAc,QAAA;;;;;;;;qBAyBnB,gBAzBmB;EAjBd,kBAAA,eAAA,mBACb,QAAQ;EAhBK,mBAAA,eAAA,mBACb,QAAQ;EA8BH,kBAAA,MAAA,6BAA2B,eACnB,mBAAc,QAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/api",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "SDK for interacting with the Intlayer API, enabling content auditing, and managing organizations, projects, and users.",
|
|
6
6
|
"keywords": [
|
|
@@ -258,14 +258,15 @@
|
|
|
258
258
|
"prepublish": "cp -f ../../../README.md ./README.md",
|
|
259
259
|
"publish": "bun publish || true",
|
|
260
260
|
"publish:canary": "bun publish --access public --tag canary || true",
|
|
261
|
+
"publish:ci": "bun ../../../scripts/publish-package.mjs",
|
|
261
262
|
"publish:latest": "bun publish --access public --tag latest || true",
|
|
262
263
|
"test": "bun --bun vitest run",
|
|
263
264
|
"test:watch": "bun --bun vitest",
|
|
264
265
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
265
266
|
},
|
|
266
267
|
"dependencies": {
|
|
267
|
-
"@intlayer/config": "9.5.
|
|
268
|
-
"@intlayer/types": "9.5.
|
|
268
|
+
"@intlayer/config": "9.5.4",
|
|
269
|
+
"@intlayer/types": "9.5.4",
|
|
269
270
|
"defu": "6.1.7"
|
|
270
271
|
},
|
|
271
272
|
"devDependencies": {
|
|
@@ -276,7 +277,7 @@
|
|
|
276
277
|
"rimraf": "6.1.3",
|
|
277
278
|
"tsdown": "0.23.0",
|
|
278
279
|
"typescript": "7.0.2",
|
|
279
|
-
"vitest": "5.0.
|
|
280
|
+
"vitest": "5.0.1"
|
|
280
281
|
},
|
|
281
282
|
"engines": {
|
|
282
283
|
"node": ">=14.18"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
-
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
4
|
-
//#region ../unmerged-dictionaries-entry/dist/types/index.d.ts
|
|
5
|
-
//#region src/index.d.ts
|
|
6
|
-
export type UnmergedDictionaries = Record<DictionaryKeys, Dictionary[]>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../../../unmerged-dictionaries-entry/dist/types/index.d.ts"],"mappings":";;;;;YAIY,uBAAuB,OAAO,gBAAgB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ResponseData } from "../utils/responseData.js";
|
|
2
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
4
|
-
//#region ../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts
|
|
5
|
-
//#region src/controllers/configuration.controller.d.ts
|
|
6
|
-
export type GetConfigurationResult = ResponseData<IntlayerConfig>;
|
|
7
|
-
//#endregion
|
|
8
|
-
//# sourceMappingURL=configuration.controller.d.ts.map
|
package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.controller.d.ts","names":[],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts"],"mappings":";;;;;YAIY,yBAAyB,aAAa"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ResponseData } from "../utils/responseData.js";
|
|
2
|
-
import { UnmergedDictionaries } from "../../../../@intlayer/unmerged-dictionaries-entry/dist/types/index.js";
|
|
3
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
4
|
-
import { DictionaryStatus } from "@intlayer/engine/build";
|
|
5
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
6
|
-
//#region ../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts
|
|
7
|
-
//#region src/controllers/dictionary.controller.d.ts
|
|
8
|
-
export type GetEditorDictionariesResult = ResponseData<UnmergedDictionaries>;
|
|
9
|
-
export type WriteContentDeclarationBody = {
|
|
10
|
-
dictionary: Dictionary;
|
|
11
|
-
};
|
|
12
|
-
type WriteContentDeclarationResultData = {
|
|
13
|
-
status: DictionaryStatus;
|
|
14
|
-
path: string;
|
|
15
|
-
};
|
|
16
|
-
export type WriteContentDeclarationResult = ResponseData<WriteContentDeclarationResultData>;
|
|
17
|
-
//#endregion
|
|
18
|
-
//# sourceMappingURL=dictionary.controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.controller.d.ts","names":[],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts"],"mappings":";;;;;;;YAMY,8BAA8B,aAAa;YAK3C;EACV,YAAY;;KAET;EACH,QAAQ;EACR;;YAEU,gCAAgC,aAAa"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { GetConfigurationResult } from "./controllers/configuration.controller.js";
|
|
2
|
-
import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "./controllers/dictionary.controller.js";
|
|
3
|
-
export { GetConfigurationResult, GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult };
|
|
@@ -1,408 +0,0 @@
|
|
|
1
|
-
//#region ../../intlayer-editor/server/dist/utils/httpStatusCodes.d.ts
|
|
2
|
-
//#region src/utils/httpStatusCodes.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Enum for HTTP response status codes.
|
|
5
|
-
* Contains all the possible HTTP response codes according to the standard.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* 1xx: Informational responses
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* 100 - CONTINUE - The server has received the request headers and the client should proceed to send the request body.
|
|
12
|
-
*
|
|
13
|
-
* 101 - SWITCHING_PROTOCOLS - The requester has asked the server to switch protocols and the server has agreed to do so.
|
|
14
|
-
*
|
|
15
|
-
* 102 - PROCESSING - Used to return some response headers before final HTTP message.
|
|
16
|
-
*
|
|
17
|
-
* 103 - EARLY_HINTS - Early hints - part of optimization to improve page load time.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* 2xx: Successful responses
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* 200 - OK - The request has succeeded.
|
|
24
|
-
*
|
|
25
|
-
* 201 - CREATED - The request has been fulfilled and has resulted in one or more new resources being created.
|
|
26
|
-
*
|
|
27
|
-
* 202 - ACCEPTED - The request has been accepted for processing, but the processing has not been completed.
|
|
28
|
-
*
|
|
29
|
-
* 203 - NON_AUTHORITATIVE_INFORMATION - The server successfully processed the request, but is returning information that may be from another source.
|
|
30
|
-
*
|
|
31
|
-
* 204 - NO_CONTENT - The server successfully processed the request and is not returning any content.
|
|
32
|
-
*
|
|
33
|
-
* 205 - RESET_CONTENT - The server successfully processed the request, but is not returning any content and requires that the requester reset the document view.
|
|
34
|
-
*
|
|
35
|
-
* 206 - PARTIAL_CONTENT - The server is delivering only part of the resource due to a range header sent by the client.
|
|
36
|
-
*
|
|
37
|
-
* 207 - MULTI_STATUS - Multi-status response providing status for multiple independent operations.
|
|
38
|
-
*
|
|
39
|
-
* 208 - ALREADY_REPORTED - The members of a DAV binding have already been enumerated in a preceding part of the request.
|
|
40
|
-
*
|
|
41
|
-
* 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.
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* 3xx: Redirection messages
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* 300 - MULTIPLE_CHOICES - The request has more than one possible response. The user-agent or user should choose one of them.
|
|
48
|
-
*
|
|
49
|
-
* 301 - MOVED_PERMANENTLY - The URL of the requested resource has been changed permanently.
|
|
50
|
-
*
|
|
51
|
-
* 302 - FOUND - The requested resource is available at a different URI.
|
|
52
|
-
*
|
|
53
|
-
* 303 - SEE_OTHER - The response to the request can be found under another URI using a GET method.
|
|
54
|
-
*
|
|
55
|
-
* 304 - NOT_MODIFIED - Indicates that the resource has not been modified since the version specified by the request headers.
|
|
56
|
-
*
|
|
57
|
-
* 305 - USE_PROXY - The requested resource must be accessed through the proxy given by the Location field.
|
|
58
|
-
*
|
|
59
|
-
* 306 - SWITCH_PROXY - No longer used. Originally meant to direct the client to switch to a different proxy.
|
|
60
|
-
*
|
|
61
|
-
* 307 - TEMPORARY_REDIRECT - The requested resource resides temporarily under a different URI.
|
|
62
|
-
*
|
|
63
|
-
* 308 - PERMANENT_REDIRECT - The request should be repeated with another URI, but future requests should still use the original URI.
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* 4xx: Client error responses
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* 400 - BAD_REQUEST - The server cannot or will not process the request due to something perceived to be a client error.
|
|
70
|
-
*
|
|
71
|
-
* 401 - UNAUTHORIZED - The client must authenticate itself to get the requested response.
|
|
72
|
-
*
|
|
73
|
-
* 403 - FORBIDDEN - The client does not have access rights to the content.
|
|
74
|
-
*
|
|
75
|
-
* 404 - NOT_FOUND - The server can not find the requested resource.
|
|
76
|
-
*
|
|
77
|
-
* 405 - METHOD_NOT_ALLOWED - The request method is known by the server but is not supported by the target resource.
|
|
78
|
-
*
|
|
79
|
-
* 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.
|
|
80
|
-
*
|
|
81
|
-
* 407 - PROXY_AUTHENTICATION_REQUIRED - This is similar to 401 but authentication is needed to be done by a proxy.
|
|
82
|
-
*
|
|
83
|
-
* 408 - REQUEST_TIMEOUT - This response is sent on an idle connection by some servers, even without any previous request by the client.
|
|
84
|
-
*
|
|
85
|
-
* 409 - CONFLICT - This response is sent when a request conflicts with the current state of the server.
|
|
86
|
-
*
|
|
87
|
-
* 410 - GONE - This response is sent when the requested resource is no longer available and will not be available again.
|
|
88
|
-
*
|
|
89
|
-
* 411 - LENGTH_REQUIRED - The request did not specify the length of its content, which is required by the requested resource.
|
|
90
|
-
*
|
|
91
|
-
* 412 - PRECONDITION_FAILED - The server does not meet one of the preconditions that the requester put on the request.
|
|
92
|
-
*
|
|
93
|
-
* 413 - PAYLOAD_TOO_LARGE - The request is larger than the server is willing or able to process.
|
|
94
|
-
*
|
|
95
|
-
* 414 - URI_TOO_LONG - The URI requested by the client is longer than the server is willing to interpret.
|
|
96
|
-
*
|
|
97
|
-
* 415 - UNSUPPORTED_MEDIA_TYPE - The media format of the requested data is not supported by the server.
|
|
98
|
-
*
|
|
99
|
-
* 416 - RANGE_NOT_SATISFIABLE - The range specified by the Range header field in the request can't be fulfilled.
|
|
100
|
-
*
|
|
101
|
-
* 417 - EXPECTATION_FAILED - The expectation indicated by the Expect request header field can't be met by the server.
|
|
102
|
-
*
|
|
103
|
-
* 418 - IM_A_TEAPOT - The server refuses the attempt to brew coffee with a teapot.
|
|
104
|
-
*
|
|
105
|
-
* 421 - MISDIRECTED_REQUEST - The request was directed at a server that is not able to produce a response.
|
|
106
|
-
*
|
|
107
|
-
* 422 - UNPROCESSABLE_ENTITY - The request was well-formed but was unable to be followed due to semantic errors.
|
|
108
|
-
*
|
|
109
|
-
* 423 - LOCKED - The resource that is being accessed is locked.
|
|
110
|
-
*
|
|
111
|
-
* 424 - FAILED_DEPENDENCY - The request failed due to failure of a previous request.
|
|
112
|
-
*
|
|
113
|
-
* 425 - TOO_EARLY - Indicates that the server is unwilling to risk processing a request that might be replayed.
|
|
114
|
-
*
|
|
115
|
-
* 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.
|
|
116
|
-
*
|
|
117
|
-
* 428 - PRECONDITION_REQUIRED - The origin server requires the request to be conditional.
|
|
118
|
-
*
|
|
119
|
-
* 429 - TOO_MANY_REQUESTS - The user has sent too many requests in a given amount of time.
|
|
120
|
-
*
|
|
121
|
-
* 431 - REQUEST_HEADER_FIELDS_TOO_LARGE - The server is unwilling to process the request because its header fields are too large.
|
|
122
|
-
*
|
|
123
|
-
* 451 - UNAVAILABLE_FOR_LEGAL_REASONS - The user-agent requested a resource that cannot legally be provided, such as a censored resource.
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* 5xx: Server error responses
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* 500 - INTERNAL_SERVER_ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request.
|
|
130
|
-
*
|
|
131
|
-
* 501 - NOT_IMPLEMENTED - The server does not support the functionality required to fulfill the request.
|
|
132
|
-
*
|
|
133
|
-
* 502 - BAD_GATEWAY - The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
|
|
134
|
-
*
|
|
135
|
-
* 503 - SERVICE_UNAVAILABLE - The server is currently unavailable (because it is overloaded or down for maintenance).
|
|
136
|
-
*
|
|
137
|
-
* 504 - GATEWAY_TIMEOUT - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
|
138
|
-
*
|
|
139
|
-
* 505 - HTTP_VERSION_NOT_SUPPORTED - The server does not support the HTTP protocol version used in the request.
|
|
140
|
-
*
|
|
141
|
-
* 506 - VARIANT_ALSO_NEGOTIATES - The server has an internal configuration error, such as a misconfigured gateway.
|
|
142
|
-
*
|
|
143
|
-
* 507 - INSUFFICIENT_STORAGE - The server is unable to store the representation needed to complete the request.
|
|
144
|
-
*
|
|
145
|
-
* 508 - LOOP_DETECTED - The server detected an infinite loop while processing a request.
|
|
146
|
-
*/
|
|
147
|
-
export declare enum HttpStatusCodes {
|
|
148
|
-
/**
|
|
149
|
-
* The server has received the request headers and the client should proceed to send the request body.
|
|
150
|
-
*/
|
|
151
|
-
CONTINUE_100 = 100,
|
|
152
|
-
/**
|
|
153
|
-
* The requester has asked the server to switch protocols and the server has agreed to do so.
|
|
154
|
-
*/
|
|
155
|
-
SWITCHING_PROTOCOLS_101 = 101,
|
|
156
|
-
/**
|
|
157
|
-
* Used to return some response headers before final HTTP message.
|
|
158
|
-
*/
|
|
159
|
-
PROCESSING_102 = 102 // WebDAV
|
|
160
|
-
,
|
|
161
|
-
/**
|
|
162
|
-
* Early hints - part of optimization to improve page load time.
|
|
163
|
-
*/
|
|
164
|
-
EARLY_HINTS_103 = 103,
|
|
165
|
-
/**
|
|
166
|
-
* The request has succeeded.
|
|
167
|
-
*/
|
|
168
|
-
OK_200 = 200,
|
|
169
|
-
/**
|
|
170
|
-
* The request has been fulfilled and has resulted in one or more new resources being created.
|
|
171
|
-
*/
|
|
172
|
-
CREATED_201 = 201,
|
|
173
|
-
/**
|
|
174
|
-
* The request has been accepted for processing, but the processing has not been completed.
|
|
175
|
-
*/
|
|
176
|
-
ACCEPTED_202 = 202,
|
|
177
|
-
/**
|
|
178
|
-
* The server successfully processed the request, but is returning information that may be from another source.
|
|
179
|
-
*/
|
|
180
|
-
NON_AUTHORITATIVE_INFORMATION_203 = 203,
|
|
181
|
-
/**
|
|
182
|
-
* The server successfully processed the request and is not returning any content.
|
|
183
|
-
*/
|
|
184
|
-
NO_CONTENT_204 = 204,
|
|
185
|
-
/**
|
|
186
|
-
* The server successfully processed the request, but is not returning any content and requires that the requester reset the document view.
|
|
187
|
-
*/
|
|
188
|
-
RESET_CONTENT_205 = 205,
|
|
189
|
-
/**
|
|
190
|
-
* The server is delivering only part of the resource due to a range header sent by the client.
|
|
191
|
-
*/
|
|
192
|
-
PARTIAL_CONTENT_206 = 206,
|
|
193
|
-
/**
|
|
194
|
-
* Multi-status response providing status for multiple independent operations.
|
|
195
|
-
*/
|
|
196
|
-
MULTI_STATUS_207 = 207 // WebDAV
|
|
197
|
-
,
|
|
198
|
-
/**
|
|
199
|
-
* The members of a DAV binding have already been enumerated in a preceding part of the request.
|
|
200
|
-
*/
|
|
201
|
-
ALREADY_REPORTED_208 = 208 // WebDAV
|
|
202
|
-
,
|
|
203
|
-
/**
|
|
204
|
-
* 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.
|
|
205
|
-
*/
|
|
206
|
-
IM_USED_226 = 226,
|
|
207
|
-
/**
|
|
208
|
-
* The request has more than one possible response. The user-agent or user should choose one of them.
|
|
209
|
-
*/
|
|
210
|
-
MULTIPLE_CHOICES_300 = 300,
|
|
211
|
-
/**
|
|
212
|
-
* The URL of the requested resource has been changed permanently.
|
|
213
|
-
*/
|
|
214
|
-
MOVED_PERMANENTLY_301 = 301,
|
|
215
|
-
/**
|
|
216
|
-
* The requested resource is available at a different URI.
|
|
217
|
-
*/
|
|
218
|
-
FOUND_302 = 302,
|
|
219
|
-
/**
|
|
220
|
-
* The response to the request can be found under another URI using a GET method.
|
|
221
|
-
*/
|
|
222
|
-
SEE_OTHER_303 = 303,
|
|
223
|
-
/**
|
|
224
|
-
* Indicates that the resource has not been modified since the version specified by the request headers.
|
|
225
|
-
*/
|
|
226
|
-
NOT_MODIFIED_304 = 304,
|
|
227
|
-
/**
|
|
228
|
-
* The requested resource must be accessed through the proxy given by the Location field.
|
|
229
|
-
*/
|
|
230
|
-
USE_PROXY_305 = 305,
|
|
231
|
-
/**
|
|
232
|
-
* No longer used. Originally meant to direct the client to switch to a different proxy.
|
|
233
|
-
*/
|
|
234
|
-
SWITCH_PROXY_306 = 306,
|
|
235
|
-
/**
|
|
236
|
-
* The requested resource resides temporarily under a different URI.
|
|
237
|
-
*/
|
|
238
|
-
TEMPORARY_REDIRECT_307 = 307,
|
|
239
|
-
/**
|
|
240
|
-
* The request should be repeated with another URI, but future requests should still use the original URI.
|
|
241
|
-
*/
|
|
242
|
-
PERMANENT_REDIRECT_308 = 308,
|
|
243
|
-
/**
|
|
244
|
-
* The server cannot or will not process the request due to something perceived to be a client error.
|
|
245
|
-
*/
|
|
246
|
-
BAD_REQUEST_400 = 400,
|
|
247
|
-
/**
|
|
248
|
-
* The client must authenticate itself to get the requested response.
|
|
249
|
-
*/
|
|
250
|
-
UNAUTHORIZED_401 = 401,
|
|
251
|
-
/**
|
|
252
|
-
* The client does not have access rights to the content.
|
|
253
|
-
*/
|
|
254
|
-
FORBIDDEN_403 = 403,
|
|
255
|
-
/**
|
|
256
|
-
* The server can not find the requested resource.
|
|
257
|
-
*/
|
|
258
|
-
NOT_FOUND_404 = 404,
|
|
259
|
-
/**
|
|
260
|
-
* The request method is known by the server but is not supported by the target resource.
|
|
261
|
-
*/
|
|
262
|
-
METHOD_NOT_ALLOWED_405 = 405,
|
|
263
|
-
/**
|
|
264
|
-
* 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.
|
|
265
|
-
*/
|
|
266
|
-
NOT_ACCEPTABLE_406 = 406,
|
|
267
|
-
/**
|
|
268
|
-
* This is similar to 401 but authentication is needed to be done by a proxy.
|
|
269
|
-
*/
|
|
270
|
-
PROXY_AUTHENTICATION_REQUIRED_407 = 407,
|
|
271
|
-
/**
|
|
272
|
-
* This response is sent on an idle connection by some servers, even without any previous request by the client.
|
|
273
|
-
*/
|
|
274
|
-
REQUEST_TIMEOUT_408 = 408,
|
|
275
|
-
/**
|
|
276
|
-
* This response is sent when a request conflicts with the current state of the server.
|
|
277
|
-
*/
|
|
278
|
-
CONFLICT_409 = 409,
|
|
279
|
-
/**
|
|
280
|
-
* This response is sent when the requested resource is no longer available and will not be available again.
|
|
281
|
-
*/
|
|
282
|
-
GONE_410 = 410,
|
|
283
|
-
/**
|
|
284
|
-
* The request did not specify the length of its content, which is required by the requested resource.
|
|
285
|
-
*/
|
|
286
|
-
LENGTH_REQUIRED_411 = 411,
|
|
287
|
-
/**
|
|
288
|
-
* The server does not meet one of the preconditions that the requester put on the request.
|
|
289
|
-
*/
|
|
290
|
-
PRECONDITION_FAILED_412 = 412,
|
|
291
|
-
/**
|
|
292
|
-
* The request is larger than the server is willing or able to process.
|
|
293
|
-
*/
|
|
294
|
-
PAYLOAD_TOO_LARGE_413 = 413,
|
|
295
|
-
/**
|
|
296
|
-
* The URI requested by the client is longer than the server is willing to interpret.
|
|
297
|
-
*/
|
|
298
|
-
URI_TOO_LONG_414 = 414,
|
|
299
|
-
/**
|
|
300
|
-
* The media format of the requested data is not supported by the server.
|
|
301
|
-
*/
|
|
302
|
-
UNSUPPORTED_MEDIA_TYPE_415 = 415,
|
|
303
|
-
/**
|
|
304
|
-
* The range specified by the Range header field in the request can't be fulfilled.
|
|
305
|
-
*/
|
|
306
|
-
RANGE_NOT_SATISFIABLE_416 = 416,
|
|
307
|
-
/**
|
|
308
|
-
* The expectation indicated by the Expect request header field can't be met by the server.
|
|
309
|
-
*/
|
|
310
|
-
EXPECTATION_FAILED_417 = 417,
|
|
311
|
-
/**
|
|
312
|
-
* The server refuses the attempt to brew coffee with a teapot.
|
|
313
|
-
*/
|
|
314
|
-
IM_A_TEAPOT_418 = 418 // Easter egg from the HTCPCP/1.0 protocol.
|
|
315
|
-
,
|
|
316
|
-
/**
|
|
317
|
-
* The request was directed at a server that is not able to produce a response.
|
|
318
|
-
*/
|
|
319
|
-
MISDIRECTED_REQUEST_421 = 421,
|
|
320
|
-
/**
|
|
321
|
-
* The request was well-formed but was unable to be followed due to semantic errors.
|
|
322
|
-
*/
|
|
323
|
-
UNPROCESSABLE_ENTITY_422 = 422 // WebDAV
|
|
324
|
-
,
|
|
325
|
-
/**
|
|
326
|
-
* The resource that is being accessed is locked.
|
|
327
|
-
*/
|
|
328
|
-
LOCKED_423 = 423 // WebDAV
|
|
329
|
-
,
|
|
330
|
-
/**
|
|
331
|
-
* The request failed due to failure of a previous request.
|
|
332
|
-
*/
|
|
333
|
-
FAILED_DEPENDENCY_424 = 424 // WebDAV
|
|
334
|
-
,
|
|
335
|
-
/**
|
|
336
|
-
* Indicates that the server is unwilling to risk processing a request that might be replayed.
|
|
337
|
-
*/
|
|
338
|
-
TOO_EARLY_425 = 425,
|
|
339
|
-
/**
|
|
340
|
-
* 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.
|
|
341
|
-
*/
|
|
342
|
-
UPGRADE_REQUIRED_426 = 426,
|
|
343
|
-
/**
|
|
344
|
-
* The origin server requires the request to be conditional.
|
|
345
|
-
*/
|
|
346
|
-
PRECONDITION_REQUIRED_428 = 428,
|
|
347
|
-
/**
|
|
348
|
-
* The user has sent too many requests in a given amount of time.
|
|
349
|
-
*/
|
|
350
|
-
TOO_MANY_REQUESTS_429 = 429,
|
|
351
|
-
/**
|
|
352
|
-
* The server is unwilling to process the request because its header fields are too large.
|
|
353
|
-
*/
|
|
354
|
-
REQUEST_HEADER_FIELDS_TOO_LARGE_431 = 431,
|
|
355
|
-
/**
|
|
356
|
-
* The user-agent requested a resource that cannot legally be provided, such as a censored resource.
|
|
357
|
-
*/
|
|
358
|
-
UNAVAILABLE_FOR_LEGAL_REASONS_451 = 451,
|
|
359
|
-
/**
|
|
360
|
-
* The server encountered an unexpected condition that prevented it from fulfilling the request.
|
|
361
|
-
*/
|
|
362
|
-
INTERNAL_SERVER_ERROR_500 = 500,
|
|
363
|
-
/**
|
|
364
|
-
* The server does not support the functionality required to fulfill the request.
|
|
365
|
-
*/
|
|
366
|
-
NOT_IMPLEMENTED_501 = 501,
|
|
367
|
-
/**
|
|
368
|
-
* The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
|
|
369
|
-
*/
|
|
370
|
-
BAD_GATEWAY_502 = 502,
|
|
371
|
-
/**
|
|
372
|
-
* The server is currently unavailable (because it is overloaded or down for maintenance).
|
|
373
|
-
*/
|
|
374
|
-
SERVICE_UNAVAILABLE_503 = 503,
|
|
375
|
-
/**
|
|
376
|
-
* The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
|
377
|
-
*/
|
|
378
|
-
GATEWAY_TIMEOUT_504 = 504,
|
|
379
|
-
/**
|
|
380
|
-
* The server does not support the HTTP protocol version used in the request.
|
|
381
|
-
*/
|
|
382
|
-
HTTP_VERSION_NOT_SUPPORTED_505 = 505,
|
|
383
|
-
/**
|
|
384
|
-
* The server has an internal configuration error, such as a misconfigured gateway.
|
|
385
|
-
*/
|
|
386
|
-
VARIANT_ALSO_NEGOTIATES_506 = 506,
|
|
387
|
-
/**
|
|
388
|
-
* The server is unable to store the representation needed to complete the request.
|
|
389
|
-
*/
|
|
390
|
-
INSUFFICIENT_STORAGE_507 = 507 // WebDAV
|
|
391
|
-
,
|
|
392
|
-
/**
|
|
393
|
-
* The server detected an infinite loop while processing a request.
|
|
394
|
-
*/
|
|
395
|
-
LOOP_DETECTED_508 = 508 // WebDAV
|
|
396
|
-
,
|
|
397
|
-
/**
|
|
398
|
-
* Further extensions to the request are required for the server to fulfill it.
|
|
399
|
-
*/
|
|
400
|
-
NOT_EXTENDED_510 = 510,
|
|
401
|
-
/**
|
|
402
|
-
* The client needs to authenticate to gain network access.
|
|
403
|
-
*/
|
|
404
|
-
NETWORK_AUTHENTICATION_REQUIRED_511 = 511
|
|
405
|
-
}
|
|
406
|
-
//#endregion
|
|
407
|
-
//#endregion
|
|
408
|
-
//# sourceMappingURL=httpStatusCodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"httpStatusCodes.d.ts","names":[],"sources":["../../../../../../../../intlayer-editor/server/dist/utils/httpStatusCodes.d.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAiJoB;;;;EAIlB;;;;EAIA;;;;EAIA;;;;;EAKA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;;EAKA;;;;EAIA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;EAIA;;;;;EAKA;;;;;EAKA;;;;EAIA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { HttpStatusCodes } from "./httpStatusCodes.js";
|
|
2
|
-
//#region ../../intlayer-editor/server/dist/utils/responseData.d.ts
|
|
3
|
-
//#region src/utils/responseData.d.ts
|
|
4
|
-
type ErrorData = {
|
|
5
|
-
code: string;
|
|
6
|
-
title: string;
|
|
7
|
-
message: string;
|
|
8
|
-
} & object;
|
|
9
|
-
export type ResponseData<T = null> = {
|
|
10
|
-
message?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
success: boolean;
|
|
13
|
-
status: HttpStatusCodes;
|
|
14
|
-
data: T | null;
|
|
15
|
-
error?: ErrorData | ErrorData[];
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
//# sourceMappingURL=responseData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responseData.d.ts","names":[],"sources":["../../../../../../../../intlayer-editor/server/dist/utils/responseData.d.ts"],"mappings":";;;KAEK;EACH;EACA;EACA;;YAEU,aAAa;EACvB;EACA;EACA;EACA,QAAQ;EACR,MAAM;EACN,QAAQ,YAAY"}
|